fix for widget edit js missing

This commit is contained in:
Matt K. Fu committed 2013-04-17 14:19:32 +08:00
1 parent 3098496083
commit a4ebe31ada
2 files changed
+5 -5

No files matched your search

@@ -7,10 +7,6 @@ function append_id(){
};
}
$("div.editable").live("mouseenter mouseleave", function (event) {
$(this).children('.edit_link').toggle();
});
$("#page_design").live('change', function() {
$.getScript($(this).attr('rel') + '?design_id=' + $(this).val() + append_id());
});
+5 -1
View File
@@ -21,4 +21,8 @@ var bindTreeDragHandle = function(){
$.post("<%= Rails.application.routes.url_helpers.admin_update_position_path %>", { id: ui.item.attr('id'), parent_id: ui.item.parent().closest('li').attr('id'), position: ui.item.index() } );
}
});
}
}
$("div.editable").live("mouseenter mouseleave", function (event) {
$(this).children('.edit_link').toggle();
});