REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 3.41 KB
Close
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/unyson/framework/static/js/backend-customizer.js
Text
Base64
jQuery(function($){ var initialized = false, changeTimeoutId = 0, randomIdIncrement = 0, localized = _fw_backend_customizer_localized, /** * @type {Object} {'#options_wrapper_id':'~'} */ pendingChanges = {}, /** * Extract all input values within option and save them to the customizer input (to trigger preview update) */ processPendingChanges = function(){ $.each(pendingChanges, function(optionsWrapperId){ var $optionsWrapper = $('#'+ optionsWrapperId), $input = $optionsWrapper.closest('.fw-backend-customizer-option') .find('> input.fw-backend-customizer-option-input'), newValue = JSON.stringify(fixSerializedValues( $optionsWrapper.find(':input').serializeArray() )); if ($input.val() === newValue) { return; } $input.val(newValue).trigger('change'); }); pendingChanges = {}; }, fixSerializedValues = function(values) { var inputNameToIndex = {}, fixedValues = []; /** * Traverse reversed array to leave only the last values. * This is how _POST works, if you have * fw_options[option_name][x]: 3 * fw_options[option_name][x]: 7 * the last one "wins" and the value of $_POST['fw_options']['option_name']['x'] will be 7 */ for (var i = values.length - 1; i >= 0; i--) { if (values[i].name.slice(-2) === '[]') { // this will be sent in _POST as array } else { if (typeof inputNameToIndex[values[i].name] === 'undefined') { inputNameToIndex[values[i].name] = i; } else { continue; // skip if already added (the last overwrites others) } } fixedValues.push(values[i]); } /** * The array was traversed in revers order, now restore the initial order */ return fixedValues.reverse(); }, init = function(){ if (initialized) { return; } /** * Populate all <input class="fw-backend-customizer-option-input" ... /> with (initial) options values */ $('#customize-theme-controls .fw-backend-customizer-option').each(function(){ $(this).find('> input.fw-backend-customizer-option-input').val( JSON.stringify(fixSerializedValues( $(this).find('> .fw-backend-customizer-option-inner :input').serializeArray() )) ); }); /** * When something may be changed, removed, added; add to pending changes */ $('#customize-theme-controls').on( 'change keyup click paste', '.fw-backend-customizer-option > .fw-backend-customizer-option-inner > .fw-backend-option > .fw-backend-option-input', function(e){ clearTimeout(changeTimeoutId); { var optionsWrapperId = $(this).attr('id'); if (!optionsWrapperId) { optionsWrapperId = 'rnid-'+ (++randomIdIncrement); $(this).attr('id', optionsWrapperId); } pendingChanges[optionsWrapperId] = '~'; } changeTimeoutId = setTimeout( processPendingChanges, /** * Let css animations finish, * to prevent block/glitch in the middle of the animation when the iframe will reload. * Bigger than 300, which most of the css animations are. */ localized.change_timeout ); } ); initialized = true; }; fwEvents.one('fw:options:init', function(){ setTimeout( init, 40 // must be later than first 'fw:options:init' on body http://bit.ly/1F1dDUZ ); }); });
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 12
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
.htaccess
205 B
lr--r--r--
2026-02-23 02:01:25
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
backend-customizer.js
3.41 KB
lrw-r--r--
2025-04-07 05:23:45
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
backend-options.js
7.58 KB
lrw-r--r--
2025-04-07 05:23:45
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fw-events.js
6.42 KB
lrw-r--r--
2025-04-07 05:23:45
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fw-form-helpers.js
7.47 KB
lrw-r--r--
2025-04-07 05:23:45
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fw-reactive-options-registry.js
9.71 KB
lrw-r--r--
2025-04-07 05:23:45
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fw-reactive-options-simple-options.js
2.29 KB
lrw-r--r--
2025-04-07 05:23:45
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fw-reactive-options-undefined-option.js
6.56 KB
lrw-r--r--
2025-04-07 05:23:45
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fw-reactive-options.js
7.29 KB
lrw-r--r--
2025-04-07 05:23:45
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fw.js
61.92 KB
lrw-r--r--
2025-04-07 05:23:45
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ie-fixes.js
715 B
lrw-r--r--
2025-04-07 05:23:45
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
option-types.js
1.05 KB
lrw-r--r--
2025-04-07 05:23:45
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).