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/plan-controller.js"); /******/ }) /************************************************************************/ /******/ ({ /***/ "./admin/source/dev/plan-controller.js": /*!*********************************************!*\ !*** ./admin/source/dev/plan-controller.js ***! \*********************************************/ /*! no static exports found */ /***/ (function(module, exports) { eval("/**\n * Created by pirates on 2/6/18.\n */\n;\n\n(function ($) {\n let $msg = $('#wiloke-submission-message-after-update'),\n security = $('#wilcity_admin_nonce_field').val(),\n paymentID = $('[name=\"paymentID\"]').val();\n\n function handleResult($btn, response) {\n let $elID = '';\n $btn.removeClass('loading');\n $btn.prop('disabled', false);\n\n if (response.success) {\n $msg.removeClass('hidden');\n\n if (typeof response.data !== 'undefined') {\n for (let elID in response.data.info) {\n $elID = $('#' + elID);\n\n if ($elID.length) {\n $elID.val(response.data.info[elID]);\n }\n }\n }\n } else {\n $msg.addClass('hidden');\n alert(response.data.msg.replace(/<{1}[^<>]{1,}>{1}/g, \" \"));\n }\n }\n\n function updateNextBillingDate() {\n let $createInvoiceBtn = $('#wiloke-charge-the-next-billing-date');\n $createInvoiceBtn.on('click', function (event) {\n event.preventDefault();\n let iWantDoThat = confirm('Do you want extend the next billing date?');\n\n if (!iWantDoThat) {\n return false;\n }\n\n $createInvoiceBtn.addClass('loading');\n $createInvoiceBtn.prop('disabled', true);\n $.ajax({\n type: 'POST',\n url: ajaxurl,\n data: {\n action: 'extend_next_billing_date',\n newStatus: 'active',\n wilcity_admin_security: security,\n paymentID: paymentID,\n planID: $('[name=\"planID\"]').val()\n },\n success: function (response) {\n handleResult($createInvoiceBtn, response);\n }\n });\n });\n }\n\n function refundSale() {\n let $btn = $('#wiloke-submission-refund-sale');\n $btn.on('click', event => {\n event.preventDefault();\n let iWantToDoThat = confirm('This is a permanent change and all posts belong to this plan will be moved to trash. You still want to that?');\n\n if (!iWantToDoThat) {\n return false;\n }\n\n $btn.addClass('loading');\n $btn.prop('disabled', true);\n $.ajax({\n type: 'POST',\n url: ajaxurl,\n data: {\n action: 'refund_sale',\n wilcity_admin_security: security,\n paymentID: paymentID,\n gateway: $('#gateway').val()\n },\n success: response => {\n handleResult($btn, response);\n }\n });\n });\n }\n\n function cancelSubscription() {\n let $btn = $('#wiloke-submission-cancel-subscription');\n $btn.on('click', event => {\n event.preventDefault();\n let iWantToDoThat = confirm('This is a permanent change and all posts belong to this plan will be moved to trash. You still want to that?');\n\n if (!iWantToDoThat) {\n return false;\n }\n\n $btn.addClass('loading');\n $btn.prop('disabled', true);\n $.ajax({\n type: 'POST',\n url: ajaxurl,\n data: {\n action: 'cancel_subscription',\n wilcity_admin_security: security,\n paymentID: paymentID,\n gateway: $('#gateway').val()\n },\n success: response => {\n handleResult($btn, response);\n }\n });\n });\n }\n\n function changeDirectBankTransferNonRecurringPaymentStatus() {\n let $btn = $('#wiloke-submission-change-banktransfer-nonrecurring-payment-status');\n $btn.on('click', event => {\n event.preventDefault();\n let newStatus = $('#change_to_new_order_status').val(),\n $orderStatus = $('#order_status'),\n currentStatus = $orderStatus.val();\n\n if (newStatus === '' || newStatus === currentStatus) {\n alert('Please select another status');\n return false;\n }\n\n if (newStatus === 'cancelled' || newStatus === 'processing') {\n let iWantToDoThat = confirm('All posts belong to this plan will be hidden. You still want to that?');\n\n if (!iWantToDoThat) {\n return false;\n }\n } else if (newStatus === 'refunded') {\n let iWantToDoThat = confirm('This is a permanent change and all posts belong to this plan will be hidden. You still want to that?');\n\n if (!iWantToDoThat) {\n return false;\n }\n }\n\n $btn.addClass('loading');\n $btn.prop('disabled', true);\n $.ajax({\n type: 'POST',\n url: ajaxurl,\n data: {\n action: 'change_banktransfer_order_status_' + $('#billingType').val(),\n wilcity_admin_security: security,\n paymentID: paymentID,\n newStatus: newStatus,\n oldStatus: currentStatus,\n gateway: $('#gateway').val()\n },\n success: response => {\n handleResult($btn, response);\n }\n });\n });\n }\n\n function changeDirectBankTransferRecurringPaymentStatus() {\n let $btn = $('#wiloke-submission-change-banktransfer-recurring-payment-status');\n $btn.on('click', event => {\n event.preventDefault();\n let newStatus = $('#change_to_new_order_status').val(),\n $orderStatus = $('#order_status'),\n currentStatus = $orderStatus.val();\n\n if (newStatus === '' || newStatus === currentStatus) {\n alert('Please select another status');\n return false;\n }\n\n if (newStatus === 'cancelled' || newStatus === 'processing') {\n let iWantToDoThat = confirm('All posts belong to this plan will be hidden. You still want to that?');\n\n if (!iWantToDoThat) {\n return false;\n }\n } else if (newStatus === 'refunded') {\n let iWantToDoThat = confirm('This is a permanent change and all posts belong to this plan will be hidden. You still want to that?');\n\n if (!iWantToDoThat) {\n return false;\n }\n }\n\n $btn.addClass('loading');\n $btn.prop('disabled', true);\n $.ajax({\n type: 'POST',\n url: ajaxurl,\n data: {\n action: 'change_banktransfer_order_status_' + $('#billingType').val(),\n paymentID: paymentID,\n wilcity_admin_security: security,\n newStatus: newStatus,\n oldStatus: currentStatus,\n gateway: $('#gateway').val()\n },\n success: response => {\n handleResult($btn, response);\n }\n });\n });\n }\n\n function deleteInvoices() {\n let $btn = $('#wilcity-delete-all-invoices');\n $btn.on('click', function (event) {\n event.preventDefault();\n let iWantToDoIt = confirm('All Invoices will be deleted permanently, You still want to do it?');\n\n if (!iWantToDoIt) {\n return false;\n }\n\n $btn.removeClass('loading');\n $btn.prop('disabled', false);\n $.ajax({\n type: 'POST',\n url: ajaxurl,\n data: {\n action: 'delete_all_invoices',\n wilcity_admin_security: security\n },\n success: function (response) {\n alert(response);\n\n if (response.success) {\n window.reload();\n }\n }\n });\n });\n }\n\n $(document).ready(function () {\n // changeSaleStatus();\n updateNextBillingDate();\n cancelSubscription();\n refundSale();\n changeDirectBankTransferNonRecurringPaymentStatus();\n changeDirectBankTransferRecurringPaymentStatus();\n deleteInvoices();\n });\n})(jQuery);\n\n//# sourceURL=webpack:///./admin/source/dev/plan-controller.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]