File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -41,10 +41,14 @@ var jsValidator = {
4141 forceFilter : false ,
4242 // To Filter the First load.
4343 initialLoad : true ,
44+ // Global options.
45+ option : false ,
4446 // Initiating the Validator.
4547 init : function ( option ) {
4648 jsLogger . table ( option ) ;
4749
50+ // To Update global options.
51+ this . option = option ;
4852 // Updating the filter flag to global.
4953 this . onlyFilter = option . onlyFilter ;
5054 // Update "jsSettings" to global object.
@@ -78,6 +82,18 @@ var jsValidator = {
7882 } ) ;
7983 }
8084 } ,
85+ // To Refresh the DOM and enable Dynamic-Elements to Access.
86+ update : function ( ) {
87+ var option = this . option ;
88+ // Updating the filter flag to global.
89+ this . onlyFilter = option . onlyFilter ;
90+ // Update "jsSettings" to global object.
91+ this . jsSettings = jsSettings . init ( option ) ;
92+ // Update "jsForm" to global object.
93+ this . jsForm = jsForm . init ( option ) ;
94+ // Initiate form error setup.
95+ this . jsFormError = jsFormError . init ( ) ;
96+ } ,
8197 // To checking all elements from registered form.
8298 check : function ( ) {
8399 var status = false ;
You can’t perform that action at this time.
0 commit comments