aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort-dev/javascript
diff options
context:
space:
mode:
authorrobiscool <robrob2626@yahoo.com>2011-06-25 08:41:45 -0700
committerrobiscool <robrob2626@yahoo.com>2011-06-25 08:41:45 -0700
commit29f7aa59851de73ad4bc6e08589448895ce11dba (patch)
tree128e817a49bf6ce3ce6497d5aeac906551dcd1f3 /config/snort-dev/javascript
parenteb63ff52f60d7fda2b71bf6319849604e38802e2 (diff)
downloadpfsense-packages-29f7aa59851de73ad4bc6e08589448895ce11dba.tar.gz
pfsense-packages-29f7aa59851de73ad4bc6e08589448895ce11dba.tar.bz2
pfsense-packages-29f7aa59851de73ad4bc6e08589448895ce11dba.zip
snort-dev, update modal, begin update gui work
Diffstat (limited to 'config/snort-dev/javascript')
-rw-r--r--config/snort-dev/javascript/snort_globalsend.js21
1 files changed, 17 insertions, 4 deletions
diff --git a/config/snort-dev/javascript/snort_globalsend.js b/config/snort-dev/javascript/snort_globalsend.js
index f62a8c16..a613dd46 100644
--- a/config/snort-dev/javascript/snort_globalsend.js
+++ b/config/snort-dev/javascript/snort_globalsend.js
@@ -136,6 +136,15 @@ jQuery(document).ready(function() {
jQuery(thisLocation).show();
};
+ // this was cp from stackoverflow dot com help question
+ // used to center snort modals
+ jQuery.fn.centerModal = function () {
+ this.css("position","absolute");
+ this.css("top", 70 + "px");
+ this.css("left", ((jQuery(window).width() - this.outerWidth()) / 2) + jQuery(window).scrollLeft() + "px");
+ return this;
+ }
+
//--------------------------- START select all code ---------------------------
@@ -314,8 +323,9 @@ jQuery(document).ready(function() {
var queryString = jQuery.param(formData);
- // call to please wait
+ // call to please wait
showLoading('#loadingWaiting');
+ jQuery('.snortModal').centerModal();
//alert('About to submit: \n\n' + queryString);
@@ -336,9 +346,12 @@ jQuery(document).ready(function() {
// After Save Calls display
var appendElem = jQuery('<br> <span>success...<span>');
function finnish(){
- hideLoading('#loadingWaiting');
- appendElem.remove();
- updatestarted = 1;
+ // hold msg for a min
+ setTimeout(function(){
+ hideLoading('#loadingWaiting');
+ appendElem.remove();
+ updatestarted = 1;
+ }, 1200 );
}
function showResponse(data, responseText, statusText, xhr, $form){