diff options
author | robiscool <robrob2626@yahoo.com> | 2011-05-10 07:50:22 -0700 |
---|---|---|
committer | robiscool <robrob2626@yahoo.com> | 2011-05-10 07:54:02 -0700 |
commit | 93d9d427d22f6d9d15e7edaaada2d6850686a060 (patch) | |
tree | 8566e33b4f5aad185f60e45cdc79baa905087a47 /config/snort-dev/javascript | |
parent | 1767a26f91ffe441474ea5f2f3676206eacc468b (diff) | |
download | pfsense-packages-93d9d427d22f6d9d15e7edaaada2d6850686a060.tar.gz pfsense-packages-93d9d427d22f6d9d15e7edaaada2d6850686a060.tar.bz2 pfsense-packages-93d9d427d22f6d9d15e7edaaada2d6850686a060.zip |
snort-dev, add interfaces edit tab, update code
Diffstat (limited to 'config/snort-dev/javascript')
-rw-r--r-- | config/snort-dev/javascript/snort_globalsend.js | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/config/snort-dev/javascript/snort_globalsend.js b/config/snort-dev/javascript/snort_globalsend.js index a23f78c9..9147cc25 100644 --- a/config/snort-dev/javascript/snort_globalsend.js +++ b/config/snort-dev/javascript/snort_globalsend.js @@ -212,10 +212,18 @@ function showRequest(formData, jqForm, options) { function showResponse(data, responseText, statusText, xhr, $form) { - function hideLoading() { - jQuery("#loadingWaiting").hide(); + function snortUnhideTabsCall() { + // unhide tabs for iface edit + if (data.snortUnhideTabs == 'true') + { + jQuery('.hide_newtabmenu').show(); + } }; + function hideLoading() { + jQuery("#loadingWaiting").hide(); + }; + // START of fill call to user if (responseText == 'success') { @@ -231,20 +239,24 @@ function showResponse(data, responseText, statusText, xhr, $form) { } // succsess display - if (data.snortgeneralsettings == 'success' || data.snortdelete == 'success' || data.snortreset == 'success') { + if (data.snortgeneralsettings == 'success' || data.snortdelete == 'success' || data.snortreset == 'success') + { var appendElem = jQuery('<br> <span>success...<span>'); appendElem.appendTo('.loadingWaitingMessage'); - // remove display + // After Save Calls display function finnish() { + snortUnhideTabsCall(); hideLoading(); appendElem.remove(); updatestarted = 1; }; setTimeout(finnish, 2000); + if (data.snortreset) {location.reload();}; // hard refresh - }; + } + // END of fill call to user }else{ |