PluginProbe
WebberZone Top 10 — Popular Posts / 4.5.1
WebberZone Top 10 — Popular Posts v4.5.1
4.5.1 4.5.0 4.4.3 4.4.2 4.4.1 4.4.0 4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 trunk 1.0 1.0.1 1.1 1.2 1.3 1.4 1.4.1 1.5 1.5.1 1.5.2 1.5.3 1.6 1.6.1 All 117 releases
← All changes | includes/admin/settings/js/tom-select-init.js +4 -5 4.4.1 → 4.5.1 View file →
@@ -1,5 +1,5 @@
1 -/* global ajaxurl, WZTomSelectSettings, jQuery, TomSelect */
1 +/* global ajaxurl, WebberTomSelectSettings, jQuery, TomSelect */
2 2
3 3 (function ($) {
4 4 'use strict';
5 5
@@ -52,13 +52,12 @@
52 52 if (tagName !== 'INPUT' && tagName !== 'SELECT' && tagName !== 'TEXTAREA') {
53 53 return;
54 54 }
55 55
56 - const prefix = element.getAttribute('data-wp-prefix') || 'WZ';
56 + const prefix = element.getAttribute('data-wp-prefix') || 'Webber';
57 57 const settingsKey = `${prefix}TomSelectSettings`;
58 58 const settings = window[settingsKey]
59 - || window.WZTomSelectSettings
60 - || window.freemkitTomSelectSettings
59 + || window.WebberTomSelectSettings
61 60 || {};
62 61
63 62 if (!settings || typeof settings !== 'object') {
64 63 return;
@@ -251,9 +250,9 @@
251 250 }
252 251 });
253 252 }
254 253
255 - window.WZInitTomSelect = initTomSelect;
254 + window.WebberInitTomSelect = initTomSelect;
256 255
257 256 document.addEventListener('wz:repeater-item-added', function (event) {
258 257 const detail = event && event.detail ? event.detail : {};
259 258 initTomSelect(detail.container || document);