diff options
Diffstat (limited to 'public')
| -rw-r--r-- | public/javascripts/admin_interface.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/public/javascripts/admin_interface.js b/public/javascripts/admin_interface.js index 977e42a..bd6576b 100644 --- a/public/javascripts/admin_interface.js +++ b/public/javascripts/admin_interface.js | |||
| @@ -122,7 +122,8 @@ image_interface = { | |||
| 122 | type : "POST", | 122 | type : "POST", |
| 123 | url : "/pages/" + $("ul#image_box").attr("rel") + "/sort_images", | 123 | url : "/pages/" + $("ul#image_box").attr("rel") + "/sort_images", |
| 124 | dataType : "json", | 124 | dataType : "json", |
| 125 | data : $("ul#image_box").sortable("serialize", {attribute : "rel"}) + "&_method=put", | 125 | data : $("ul#image_box").sortable("serialize", {attribute : "rel"}) + |
| 126 | "&_method=put", | ||
| 126 | success : function() {} | 127 | success : function() {} |
| 127 | }); | 128 | }); |
| 128 | } | 129 | } |
| @@ -130,7 +131,9 @@ image_interface = { | |||
| 130 | 131 | ||
| 131 | $("ul#image_box").droppable({ | 132 | $("ul#image_box").droppable({ |
| 132 | out : function(event, ui) { | 133 | out : function(event, ui) { |
| 133 | $(ui.draggable).bind("mouseup", function() {$(this).remove()}) | 134 | $(ui.draggable).bind("mouseup", function() { |
| 135 | $(this).remove() | ||
| 136 | }); | ||
| 134 | } | 137 | } |
| 135 | }); | 138 | }); |
| 136 | 139 | ||
