File manager - Edit - /home/linknsbh/cecil-hotel.net/platform/packages/theme/resources/js/theme.js
Back
class ThemeManagement { init() { $(document).on('click', '.btn-trigger-active-theme', (event) => { event.preventDefault() let _self = $(event.currentTarget) Botble.showButtonLoading(_self) $httpClient .make() .post(route('theme.active', { theme: _self.data('theme') })) .then(({ data }) => { Botble.showSuccess(data.message) window.location.reload() }) .finally(() => { Botble.hideButtonLoading(_self) }) }) $(document).on('click', '.btn-trigger-remove-theme', (event) => { event.preventDefault() $('#confirm-remove-theme-button').data('theme', $(event.currentTarget).data('theme')) $('#remove-theme-modal').modal('show') }) $(document).on('click', '#confirm-remove-theme-button', (event) => { event.preventDefault() let _self = $(event.currentTarget) Botble.showButtonLoading(_self) $httpClient .make() .post(route('theme.remove', { theme: _self.data('theme') })) .then(({ data }) => { Botble.showSuccess(data.message) window.location.reload() }) .finally(() => { Botble.hideButtonLoading(_self) $('#remove-theme-modal').modal('hide') }) }) } } $(() => { new ThemeManagement().init() })
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 0.7 |
proxy
|
phpinfo
|
Settings