Advanced Web Server Manager
Complete File Manager & Terminal - Standalone Version
By Sid Gifari | Gifari Industries
Current path:
/
/
home
/
qtdcvxyp
/
karir.star4hire.com
/
public
/
themes
/
admin
/
js
✏️
Editing: app.js
/** * We'll load jQuery and the Bootstrap jQuery plugin which provides support * for JavaScript based Bootstrap features such as modals and tabs. This * code may be modified to fit the specific needs of your application. */ try { $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); } catch (e) { console.log(e); } //window.ClassicEditor = require('../../ckeditor'); // window.ClassicEditor = require('@ckeditor/ckeditor5-build-classic'); // console.log(ClassicEditor); // console.log(ClassicEditor); require('../module/media/admin/js/browser'); require('./_condition'); require('./_base'); require('./_form'); require('./_menu'); require('./_notification'); import TemplateDetail from '../module/template/admin/detail.js'; import MediaManagement from '../module/media/admin/js/media-management'; // Template if(document.getElementById('media-management')){ MediaManagement(); } // Template if(document.getElementById('booking-core-template-detail')){ TemplateDetail(); } $(document).on('hidden.bs.modal', '.modal', function () { $('.modal:visible').length && $(document.body).addClass('modal-open'); }); window.bookingCoreApp ={ showSuccess:function (configs){ var args = {}; if(typeof configs == 'object') { args = configs; }else{ args.message = configs; } if(!args.title){ args.title = i18n.success; } args.centerVertical = true; bootbox.alert(args); }, showError:function (configs) { var args = {}; if(typeof configs == 'object') { args = configs; }else{ args.message = configs; } if(!args.title){ args.title = i18n.warning; } args.centerVertical = true; bootbox.alert(args); }, showAjaxError:function (e) { var json = e.responseJSON; if(typeof json !='undefined'){ if(typeof json.errors !='undefined'){ var html = ''; _.forEach(json.errors,function (val) { html+=val+'<br>'; }); return this.showError(html); } if(json.message){ return this.showError(json.message); } } if(e.responseText){ return this.showError(e.responseText); } }, showAjaxMessage:function (json) { if(json.message) { if(json.status){ this.showSuccess(json); }else{ this.showError(json); } } }, showConfirm:function (configs) { var args = {}; if(typeof configs == 'object') { args = configs; } args.buttons = { confirm: { label: '<i class="fa fa-check"></i> '+i18n.confirm, }, cancel: { label: '<i class="fa fa-times"></i> '+i18n.cancel, } } args.centerVertical = true; bootbox.confirm(args); }, };
💾 Save Changes
❌ Cancel