![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/cartforge.co/app/code/Webkul/PrivateShop/view/adminhtml/web/js/grid/ |
/** * Webkul Software * * @category Webkul * @package Webkul_PrivateShop * @author Webkul Software Private Limited * @copyright Webkul Software Private Limited (https://webkul.com) * @license https://store.webkul.com/license.html */ define([ 'jquery', 'uiRegistry', 'mageUtils', 'Magento_Ui/js/modal/confirm', 'Magento_Ui/js/modal/alert', 'Magento_Ui/js/modal/modal', 'mage/translate' ], function ( $, registry, utils, confirm, alert, modal, $t ) { 'use strict'; return function (Massaction) { return Massaction.extend({ /** * @inheritDoc */ applyAction: function (actionIndex) { var data = this.getSelections(), action, callback; if (!data.total) { alert({ content: this.noItemsMsg }); return this; } action = this.getAction(actionIndex); callback = this._getCallback(action, data); action.confirm ? this._confirm(action, callback) : callback(); if (action.type == 'private_group') { registry.get('assign_group_from.assign_group_from.data.ids', function (input) { input.value(JSON.stringify(data.selected)); }); registry.get('assign_product_from.assign_product_from.data.ids', function (input) { input.value(JSON.stringify(data.selected)); }); } return this; } }); } });