2011-12-18 02:07:42 +00:00
|
|
|
$("div.editable").live("mouseenter mouseleave", function (event) {
|
|
|
|
$(this).children('.edit_link').toggle();
|
|
|
|
});
|
|
|
|
|
|
|
|
$("#page_design_id").live('change', function() {
|
|
|
|
$.getScript($(this).attr('rel') + '/' + $(this).val() + '/reload_themes');
|
2011-12-20 08:47:17 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$("#page_module_app").live('change', function() {
|
|
|
|
var app_id = $(this).val();
|
|
|
|
if(app_id!=''){
|
|
|
|
$.getScript($(this).attr('rel') + '/' + $(this).val() + '/reload_frontend_pages',function(data, textStatus){
|
|
|
|
if(textStatus == 'success'){
|
|
|
|
$(this).after(data);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
$("#app_page_url").remove();
|
|
|
|
}
|
|
|
|
});
|