From: Chuck Scott Date: Fri, 9 Aug 2019 20:54:39 +0000 (-0400) Subject: Added flag to enable/dissable check for leaving a page the pending changes. X-Git-Tag: v3.0.0^2~3 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=4bde7b1f68afeb16c48d24b553b29cff40ad1617;p=WP-Plugins%2Fglm-serverstats.git Added flag to enable/dissable check for leaving a page the pending changes. --- diff --git a/views/adminServerStats.html b/views/adminServerStats.html index 5f95c51..ed99767 100755 --- a/views/adminServerStats.html +++ b/views/adminServerStats.html @@ -192,7 +192,8 @@ 'action' => "{$thisUrl}?page={$thisPage}&selected_site={$selectedSite}", 'method' => 'POST', 'validate' => true, - 'validateFocusMsg' => true + 'validateFocusMsg' => true, + 'leaveModifiedFormCheck' => true ]} {include file="ui/f6/form-start.html"} diff --git a/views/adminServerStatsConfig.html b/views/adminServerStatsConfig.html index 68a707c..c22e1aa 100755 --- a/views/adminServerStatsConfig.html +++ b/views/adminServerStatsConfig.html @@ -16,7 +16,8 @@ 'validate' => true, 'validateID' => '1234', 'validateFocusMsg' => true, - 'validateMessage' => 'There are some errors in your form. Please check the highlighted fields below.' + 'validateMessage' => 'There are some errors in your form. Please check the highlighted fields below.', + 'leaveModifiedFormCheck' => true ]} {include file="ui/f6/form-start.html"} diff --git a/views/ui/f6/form-start.html b/views/ui/f6/form-start.html index 7550f8b..e94cb20 100644 --- a/views/ui/f6/form-start.html +++ b/views/ui/f6/form-start.html @@ -8,14 +8,15 @@ validate message. {$ui = [ - 'action' => string Required URL - 'method' => string Required Method "post" or "get" - 'id' => string Form id - 'file' => boolean If including file upload set to true - 'validate' => boolean If true, include Abide Form Validation - 'validateFocusMsg' => boolean If true focuses on validateMessage on error - May be a problem if there's more than one validated form (may have to ID these messages separately) - 'validateID' => string Unique text that will be added to the validate message container to ensure that it is unique - 'validateMessage' => string Message to show for a validation error, Defaults to "There are some errors in your form." + 'action' => string Required URL + 'method' => string Required Method "post" or "get" + 'id' => string Form id + 'file' => boolean If including file upload set to true + 'validate' => boolean If true, include Abide Form Validation + 'validateFocusMsg' => boolean If true focuses on validateMessage on error - May be a problem if there's more than one validated form (may have to ID these messages separately) + 'validateID' => string Unique text that will be added to the validate message container to ensure that it is unique + 'validateMessage' => string Message to show for a validation error, Defaults to "There are some errors in your form." + 'leaveModifiedFormCheck' => boolean If set and user tries to leave the page after modifying form input it will warn them and ask if they want to abandon their changes. ]} *}