2011-12-18 02:07:42 +00:00
|
|
|
$("div.editable").live("mouseenter mouseleave", function (event) {
|
|
|
|
$(this).children('.edit_link').toggle();
|
|
|
|
});
|
|
|
|
|
2012-02-23 07:48:23 +00:00
|
|
|
$("#page_design").live('change', function() {
|
2011-12-18 02:07:42 +00:00
|
|
|
$.getScript($(this).attr('rel') + '/' + $(this).val() + '/reload_themes');
|
2011-12-20 08:47:17 +00:00
|
|
|
});
|
|
|
|
|
2011-12-23 05:54:28 +00:00
|
|
|
$("#page_module_app_id").live('change', function() {
|
2011-12-20 08:47:17 +00:00
|
|
|
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{
|
2011-12-23 05:54:28 +00:00
|
|
|
$("#app_page_url").children().remove();
|
2011-12-20 08:47:17 +00:00
|
|
|
}
|
|
|
|
});
|
2012-02-16 04:16:27 +00:00
|
|
|
|
|
|
|
$("#module_app_list select").live('change', function() {
|
|
|
|
$.getScript($(this).attr('rel') + '/' + $(this).val() + '/reload_widgets');
|
|
|
|
});
|
|
|
|
|
|
|
|
$('.part_kind').live('click', function() {
|
|
|
|
$('.part_kind_partial').hide();
|
|
|
|
$('#part_' + $(this).attr('value')).show();
|
|
|
|
});
|