PATH:
home
/
hunkmedicalstaff
/
public_html
/
wp-content
/
plugins
/
gravityforms
/
js
//---------------------------------------------------------- //------ JAVASCRIPT HOOK FUNCTIONS FOR GRAVITY FORMS ------- //---------------------------------------------------------- if ( ! gform ) { document.addEventListener( 'gform_main_scripts_loaded', function() { gform.scriptsLoaded = true; } ); document.addEventListener( 'gform/theme/scripts_loaded', function() { gform.themeScriptsLoaded = true; } ); window.addEventListener( 'DOMContentLoaded', function() { gform.domLoaded = true; } ); var gform = { domLoaded: false, scriptsLoaded: false, themeScriptsLoaded: false, isFormEditor: () => typeof InitializeEditor === 'function', /** * @deprecated 2.9 the use of initializeOnLoaded in the form editor context is deprecated. * @remove-in 4.0 this function will not check for gform.isFormEditor(). */ callIfLoaded: function ( fn ) { if ( gform.domLoaded && gform.scriptsLoaded && ( gform.themeScriptsLoaded || gform.isFormEditor() ) ) { if ( gform.isFormEditor() ) { console.warn( 'The use of gform.initializeOnLoaded() is deprecated in the form editor context and will be removed in Gravity Forms 3.1.' ); } fn(); return true; } return false; }, /** * Call a function when all scripts are loaded * * @param function fn the callback function to call when all scripts are loaded * * @returns void */ initializeOnLoaded: function( fn ) { if ( ! gform.callIfLoaded( fn ) ) { document.addEventListener( 'gform_main_scripts_loaded', () => { gform.scriptsLoaded = true; gform.callIfLoaded( fn ); } ); document.addEventListener( 'gform/theme/scripts_loaded', () => { gform.themeScriptsLoaded = true; gform.callIfLoaded( fn ); } ); window.addEventListener( 'DOMContentLoaded', () => { gform.domLoaded = true; gform.callIfLoaded( fn ); } ); } }, hooks: { action: {}, filter: {} }, addAction: function( action, callable, priority, tag ) { gform.addHook( 'action', action, callable, priority, tag ); }, addFilter: function( action, callable, priority, tag ) { gform.addHook( 'filter', action, callable, priority, tag ); }, doAction: function( action ) { gform.doHook( 'action', action, arguments ); }, applyFilters: function( action ) { return gform.doHook( 'filter', action, arguments ); }, removeAction: function( action, tag ) { gform.removeHook( 'action', action, tag ); }, removeFilter: function( action, priority, tag ) { gform.removeHook( 'filter', action, priority, tag ); }, addHook: function( hookType, action, callable, priority, tag ) { if ( undefined == gform.hooks[hookType][action] ) { gform.hooks[hookType][action] = []; } var hooks = gform.hooks[hookType][action]; if ( undefined == tag ) { tag = action + '_' + hooks.length; } if( priority == undefined ){ priority = 10; } gform.hooks[hookType][action].push( { tag:tag, callable:callable, priority:priority } ); }, doHook: function( hookType, action, args ) { // splice args from object into array and remove first index which is the hook name args = Array.prototype.slice.call(args, 1); if ( undefined != gform.hooks[hookType][action] ) { var hooks = gform.hooks[hookType][action], hook; //sort by priority hooks.sort(function(a,b){return a["priority"]-b["priority"]}); hooks.forEach( function( hookItem ) { hook = hookItem.callable; if(typeof hook != 'function') hook = window[hook]; if ( 'action' == hookType ) { hook.apply(null, args); } else { args[0] = hook.apply(null, args); } } ); } if ( 'filter'==hookType ) { return args[0]; } }, removeHook: function( hookType, action, priority, tag ) { if ( undefined != gform.hooks[hookType][action] ) { var hooks = gform.hooks[hookType][action]; hooks = hooks.filter( function(hook, index, arr) { var removeHook = (undefined==tag||tag==hook.tag) && (undefined==priority||priority==hook.priority); return !removeHook; } ); gform.hooks[hookType][action] = hooks; } } }; }
[-] gf_field_filter.min.js
[edit]
[-] duplicate-submissions.min.js
[edit]
[-] form_editor.js
[edit]
[-] conditional_logic.min.js
[edit]
[-] duplicate-submissions.js
[edit]
[-] index.php
[edit]
[-] plugin_settings.min.js
[edit]
[-] jquery.maskedinput.min.js
[edit]
[-] jquery.json-1.3.js
[edit]
[-] form_admin.min.js
[edit]
[-] layout_editor.min.js
[edit]
[-] gf_field_filter.js
[edit]
[-] jquery.textareaCounter.plugin.min.js
[edit]
[-] datepicker-legacy.js
[edit]
[-] jquery.maskedinput.js
[edit]
[-] datepicker.js
[edit]
[-] layout_editor.js
[edit]
[-] jquery.maskedinput-1.3.1.min.js
[edit]
[-] gravityforms.js
[edit]
[-] skip.min.js
[edit]
[-] plugin_settings.js
[edit]
[-] page_conditional_logic.min.js
[edit]
[-] form_editor.min.js
[edit]
[+]
vendor
[-] datepicker.min.js
[edit]
[-] skip.js
[edit]
[-] shortcode-ui.min.js
[edit]
[-] jquery.json.min.js
[edit]
[-] gforms_hooks.js
[edit]
[-] preview.min.js
[edit]
[-] chosen.jquery.min.js
[edit]
[-] shortcode-ui.js
[edit]
[+]
..
[-] conditional_logic.js
[edit]
[-] forms.min.js
[edit]
[-] preview.js
[edit]
[-] form_admin.js
[edit]
[-] gravityforms.min.js
[edit]
[-] forms.js
[edit]
[-] tooltip_init.min.js
[edit]
[-] gforms_hooks.min.js
[edit]
[+]
components
[-] datepicker-legacy.min.js
[edit]
[-] jquery.textareaCounter.plugin.js
[edit]
[-] page_conditional_logic.js
[edit]
[-] jquery.json-1.3.min.js
[edit]
[-] placeholders.jquery.min.js
[edit]
[-] jquery.json.js
[edit]
[-] tooltip_init.js
[edit]