2013-04-03 09:49:59 +00:00
|
|
|
function append_id(){
|
|
|
|
if ($("#object_id").length == 1) {
|
|
|
|
return "&id="+$("#object_id").val();
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
return '';
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2013-07-02 08:46:44 +00:00
|
|
|
$("div.editable").live("mouseenter mouseleave", function (event) {
|
|
|
|
$(this).children('.edit_link').toggle();
|
|
|
|
});
|
|
|
|
|
2013-04-03 09:49:59 +00:00
|
|
|
$("#page_design").live('change', function() {
|
|
|
|
$.getScript($(this).attr('rel') + '?design_id=' + $(this).val() + append_id());
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$("#module_app_list select").live('change', function() {
|
|
|
|
$.getScript($(this).attr('rel') + '?module_app_id='+$(this).val() + append_id());
|
|
|
|
});
|
|
|
|
|
2013-07-02 08:46:44 +00:00
|
|
|
$("#widget_list select, #frontend_list select").live('change', function() {
|
2013-04-03 09:49:59 +00:00
|
|
|
$.getScript($(this).attr('rel') +'?frontend=' + $(this).val() + '&module_app_id=' + $("#module_app_list select").val() + append_id() );
|
|
|
|
});
|
|
|
|
|
|
|
|
$("#tag_list select").live('change', function() {
|
|
|
|
$.getScript($(this).attr('rel') + '?type=' + $(this).val() + append_id() );
|
|
|
|
});
|
|
|
|
|
|
|
|
$("select.widget_field_select").live('change', function() {
|
|
|
|
$.getScript($(this).attr('rel') + '?widget_field_value='+ $(this).val()+'&dom_id=' + $(this).attr("id") + '&field_seri=' +$(this).attr('field_seri')+ '&module_app_id=' +$("#page_module_app_id,page_part_module_app_id").val() + append_id() );
|
|
|
|
});
|
|
|
|
|
|
|
|
$('.part_kind').live('click', function() {
|
|
|
|
$('.part_kind_partial').hide();
|
|
|
|
$('#part_' + $(this).attr('value')).show();
|
|
|
|
});
|