fix for widget edit js missing

This commit is contained in:
Matt K. Fu 2013-04-08 14:39:31 +08:00
parent 3098496083
commit a4ebe31ada
2 changed files with 5 additions and 5 deletions

View File

@ -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());
});

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();
});