OSDN Git Service

fix:element remove func failed
[pettanr/pettanr.git] / app / assets / javascripts / editor / panel_editor / element.js.coffee
index a412975..0b584db 100644 (file)
@@ -125,7 +125,7 @@ class Editor.EditorModule.DockModule.ElementBay extends Editor.EditorModule.Dock
     _.each @removed_elements, (element) ->\r
       name = element.table_name() + '_attributes'\r
       attrs[name] ||= []\r
-      attrs[name].push({id: element.get('id'), _destroy: true})\r
+      attrs[name].push({id: element.get('id'), _destroy: 1})\r
     attrs\r
   \r
   pick: (new_item) ->\r