ri_editor_script_persistency

The Gravity Forms Data Persistence Add-On Reloaded ri editor script persistency function.

Description

ri_editor_script_persistency(); 

Usage

  1. if ( !function_exists( 'ri_editor_script_persistency' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'gravity-forms-data-persistence-add-on-reloaded/gravity-forms-data-persistence-add-on-reloaded.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = ri_editor_script_persistency(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/gravity-forms-data-persistence-add-on-reloaded.php  
  1. function ri_editor_script_persistency() { 
  2. ?> 
  3. <script type='text/javascript'> 
  4. if (typeof form != 'undefined') { 
  5. if (typeof form.isPersistent != 'undefined') { 
  6. jQuery("#ri_gfdp_persist").val('submit_only'); 
  7. if (typeof form.isEnableMulipleEntry != 'undefined') { 
  8. jQuery("#ri_gfdp_multiple_entries").attr("checked", form.isEnableMulipleEntry); 
  9. if (typeof form.isEnablePersistentClear != 'undefined') { 
  10. jQuery("#ri_gfdp_persist_clear").attr("checked", form.isEnablePersistentClear); 
  11. </script> 
  12. <?php