aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Materials
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/Materials')
-rwxr-xr-xjs/panels/Materials/materials-library-panel.reel/materials-library-panel.js32
1 files changed, 10 insertions, 22 deletions
diff --git a/js/panels/Materials/materials-library-panel.reel/materials-library-panel.js b/js/panels/Materials/materials-library-panel.reel/materials-library-panel.js
index 5fd86d00..2176c6d5 100755
--- a/js/panels/Materials/materials-library-panel.reel/materials-library-panel.js
+++ b/js/panels/Materials/materials-library-panel.reel/materials-library-panel.js
@@ -26,28 +26,9 @@ exports.MaterialsLibraryPanel = Montage.create(Component, {
26 } 26 }
27 }, 27 },
28 28
29 willDraw: { 29 prepareForDraw: {
30 enumerable: false, 30 value : function() {
31 value: function() { 31 this.eventManager.addEventListener("showMaterialPopup", this, false);
32
33 }
34 },
35
36 draw: {
37 enumerable: false,
38 value: function() {
39
40 }
41 },
42
43 _loadXMLDoc: {
44 value:function(dname) {
45 if (window.XMLHttpRequest) {
46 xhttp = new XMLHttpRequest();
47 }
48 xhttp.open("GET", dname, false);
49 xhttp.send();
50 return xhttp.responseXML;
51 } 32 }
52 }, 33 },
53 34
@@ -74,6 +55,13 @@ exports.MaterialsLibraryPanel = Montage.create(Component, {
74 } 55 }
75 }, 56 },
76 57
58 handleShowMaterialPopup: {
59 enumerable: false,
60 value: function (event) {
61 this._showMaterialPopup(event.detail.materialId);
62 }
63 },
64
77 _materialPopup: { 65 _materialPopup: {
78 enumerable:true, 66 enumerable:true,
79 value:null 67 value:null