huqi 5 лет назад
Родитель
Сommit
e8498aaa60

+ 4 - 1
o2web/source/o2_core/o2/widget/Maplist.js

@@ -293,8 +293,11 @@ o2.widget.Maplist = new Class({
 	},
     getValue: function(){
 		return this.toJson();
+	},
+	destroy: function(){
+		this.container.destroy();
+		o2.release(this);
 	}
-	
 });
 
 o2.widget.Maplist.Item = new Class({

+ 9 - 1
o2web/source/x_component_FindDesigner/Main.js

@@ -1069,11 +1069,19 @@ MWF.xApplication.FindDesigner.Main = new Class({
 						var d = this.designerDataObject[this.editor.pattern.designerId];
 						if (this.editor.pattern.pattern.path){
 							var path = this.editor.pattern.pattern.path;
+
 							for (var i=0; i<path.length-1; i++){
 								d = d[path[i]];
 							}
 						}
-						d[path[path.length-1]] = this.editor.getValue();
+
+						if (path[path.length-1]=="styles"){
+							d["recoveryStyles"] = this.editor.getValue();
+						}else if (path[path.length-1]=="inputStyles"){
+							d["recoveryInputStyles"] = this.editor.getValue();
+						}else{
+							d[path[path.length-1]] = this.editor.getValue();
+						}
 					}
 
 					if (m) m(data.data, data.mobileData, null, function(){