From 30dbae4e3654a9e6b6758e9c0ccf89604f39df24 Mon Sep 17 00:00:00 2001 From: nagoon97 Date: Wed, 17 Oct 2012 05:53:05 +0000 Subject: [PATCH] Layout setup screen git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11756 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/menu/tpl/sitemap.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/modules/menu/tpl/sitemap.html b/modules/menu/tpl/sitemap.html index f0d489afd..44e2933d5 100644 --- a/modules/menu/tpl/sitemap.html +++ b/modules/menu/tpl/sitemap.html @@ -2097,6 +2097,26 @@ jQuery(function($){ //console.log(htData); $('#layoutSetup').find('._contents').html(htData.html); + var $configForm = $('#config_form'); + $configForm.on('submit', function(ev){ + var htData = {}; + var sKey, sValue; + $(this).find('input').each(function(){ + sKey = $(this).attr('name'); + sValue = $(this).val(); + htData[sKey] = sValue; + }); + console.log(htData); + ev.preventDefault(); + + var sUrl = $('#config_form').attr('action'); + $.post( sUrl, htData, + function( htRes ) { + //console.log(999, htRes); + } + ); + }) + scrollToRight(); }); })