PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
wiloke-listing-tools
/
admin
/
source
/
js
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = "https://demo.wilcityapp.com/wp-content/plugins/wiloke-listing-tools/admin/source/js/"; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = "./admin/source/dev/wiloke-submission-general.js"); /******/ }) /************************************************************************/ /******/ ({ /***/ "./admin/source/dev/wiloke-submission-general.js": /*!*******************************************************!*\ !*** ./admin/source/dev/wiloke-submission-general.js ***! \*******************************************************/ /*! no static exports found */ /***/ (function(module, exports) { eval("/**\n * Created by pirates on 1/16/18.\n */\n(function ($) {\n 'use strict';\n\n function checkboxItem() {\n $('.wiloke_checkall').on('change', function (event) {\n if ($(this).is(':checked')) {\n $('.wiloke_checkbox_item').prop('checked', true);\n } else {\n $('.wiloke_checkbox_item').prop('checked', false);\n }\n });\n }\n\n function deleteSales() {\n $('.js_delete_sales').on('click', function (event) {\n event.preventDefault();\n let iWantToDelete = confirm('Are you sure that want to delete all checked items?');\n\n if (!iWantToDelete) {\n return false;\n }\n\n let aItems = [];\n $('.wiloke_checkbox_item:checked').each(function () {\n aItems.push($(this).val());\n });\n jQuery.ajax({\n type: 'POST',\n url: ajaxurl,\n data: {\n action: 'wiloke_delete_sales',\n items: aItems\n },\n success: response => {\n alert(response.data);\n\n if (response.success) {\n location.reload();\n }\n }\n });\n });\n }\n\n function deleteInvoices() {\n $('#js_delete_invoices').on('click', function (event) {\n event.preventDefault();\n let iWantToDelete = confirm('Are you sure that want to delete all checked items?');\n\n if (!iWantToDelete) {\n return false;\n }\n\n let aItems = [];\n $('.wiloke_checkbox_item:checked').each(function () {\n aItems.push($(this).val());\n });\n jQuery.ajax({\n type: 'POST',\n url: ajaxurl,\n data: {\n action: 'wiloke_delete_invoices',\n items: aItems\n },\n success: response => {\n alert(response.data);\n\n if (response.success) {\n location.reload();\n }\n }\n });\n });\n }\n\n function deleteSubscriptions() {\n $('.js_delete_subscription').on('click', function (event) {\n event.preventDefault();\n let iWantToDelete = confirm('Are you sure that want to delete all checked items?');\n\n if (!iWantToDelete) {\n return false;\n }\n\n let aItems = [];\n $('.wiloke_checkbox_item:checked').each(function () {\n aItems.push($(this).val());\n });\n jQuery.ajax({\n type: 'POST',\n url: ajaxurl,\n data: {\n action: 'wiloke_delete_subcriptions',\n items: aItems\n },\n success: response => {\n alert(response.data);\n\n if (response.success) {\n location.reload();\n }\n }\n });\n });\n }\n\n $(document).ready(function () {\n deleteInvoices();\n deleteSubscriptions();\n deleteSales();\n checkboxItem();\n checkboxItem();\n\n if ($().accordion) {\n $('.ui.accordion').accordion();\n }\n\n if ($().dropdown) {\n $('.ui.dropdown').each(function () {\n $(this).dropdown({\n forceSelection: false\n });\n });\n $('.ui.selection').on('click', 'a.ui.label', function (event) {\n event.preventDefault();\n });\n }\n\n if ($().tab) {\n $('.menu .item').tab();\n }\n\n if ($().datepicker) {\n $('.wiloke_datepicker').datepicker({\n dateFormat: 'yy/mm/dd'\n });\n }\n\n let $dependency = $('.wiloke-has-dependency');\n\n if ($dependency.length) {\n $dependency.each(function (event) {\n let $self = $(this),\n oDependency = $(this).data('dependency'),\n aValues = oDependency.value.split(',');\n $('[name=\"' + oDependency.name + '\"]').on('change', function () {\n let val = $(this).val();\n\n if (aValues.indexOf(val) !== -1) {\n $self.removeClass('hidden');\n } else {\n $self.addClass('hidden');\n }\n }).trigger('change');\n });\n }\n\n $(document).on('click', '.selection .ui.label', function (event) {\n event.preventDefault();\n });\n });\n})(jQuery);\n\n//# sourceURL=webpack:///./admin/source/dev/wiloke-submission-general.js?"); /***/ }) /******/ });
[+]
..
[-] wil-main-search-form.wil-main-search-form.js
[edit]
[-] claim-script.js
[edit]
[-] promotion-script.js
[edit]
[-] design-single-nav.js
[edit]
[-] listing-tools.js
[edit]
[-] wil-single-nav.wil-single-nav.js
[edit]
[-] script.js
[edit]
[-] default~wil-hero-search-form~wil-main-search-form.default~wil-hero-search-form~wil-main-search-form.js
[edit]
[-] mailtpl-admin.js
[edit]
[-] design-hero-search-form.js
[edit]
[-] design-sidebar.js
[edit]
[-] wil-hero-search-form.wil-hero-search-form.js
[edit]
[-] mobile-menu.js
[edit]
[-] global.js
[edit]
[-] import-export-wiloke-tools.js
[edit]
[-] listing-card.js
[edit]
[-] contactform7.js
[edit]
[-] push-notifications.js
[edit]
[-] wiloke-submission-general.js
[edit]
[-] listing-plan.js
[edit]
[-] wil-schema-markup.wil-schema-markup.js
[edit]
[-] add-custom-posttype.js
[edit]
[-] report-script.js
[edit]
[-] event-script.js
[edit]
[-] quick-search-form-script.js
[edit]
[-] general.js
[edit]
[-] wil-single-sidebar.wil-single-sidebar.js
[edit]
[-] design-fields.js
[edit]
[-] vendors~wil-schema-markup.vendors~wil-schema-markup.js
[edit]
[-] listing-settings.js
[edit]
[-] noticeafterupdating.js
[edit]
[-] wil-listing-card.wil-listing-card.js
[edit]
[-] design-search-form.js
[edit]
[-] design-highlight-boxes.js
[edit]
[-] pw-select2.js
[edit]
[-] verify-purchase-code.js
[edit]
[-] plan-controller.js
[edit]
[-] wil-reviews.wil-reviews.js
[edit]
[-] schema-markup.js
[edit]
[-] wil-single-highlight-boxes.wil-single-highlight-boxes.js
[edit]