JS callback function for the file chest in layout setup

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11786 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
nagoon97 2012-10-18 13:07:32 +00:00
parent 4782819765
commit 1cc9920274

View file

@ -2188,7 +2188,7 @@ jQuery(function($){
scrollToRight();
});
})
function refreshLayoutMarkupSetup(){
top.refreshLayoutMarkupSetup = function(){
$('#layoutMarkupSetup').show();
}
$('#layoutMarkupSetup').on('show', function(ev){
@ -2198,12 +2198,14 @@ jQuery(function($){
$contents = $('#layoutMarkupSetup ._contents');
$contents.html(htData.html);
$allForms = $('#layoutMarkupSetup form');
$fileChest = $contents.find('form[enctype="multipart/form-data"]');
$markup = $contents.find('#fo_layout');
$fileDelete = $('#layoutMarkupSetup form').not($fileChest).not($markup);
$fileDelete = $allForms.not($fileChest).not($markup);
$fileChest.append($("<INPUT>").attr("type", "hidden").attr("name", "xe_js_callback").attr("value", "refreshLayoutMarkupSetup"));
$fileChest.append($("<INPUT>").attr("type", "hidden").attr("name", "xe_js_callback").attr("value", "top.refreshLayoutMarkupSetup"));
$fileChest.attr('target', '_submitTarget');
var $configForm = $('#config_form');