//--------------------------------------------------------------------// // script that handles our admin functionality. //--------------------------------------------------------------------// (function ($) { "use strict"; /** * Holds most important methods that bootstrap the whole admin area. * * @type {Object} */ var BusinessAssistantAdmin = { /** * Start the engine. * * @since 1.0.0 */ init: function () { // Document ready $(document).ready(BusinessAssistantAdmin.ready); // Window load $(window).on("load", BusinessAssistantAdmin.load); // Bind UI actions BusinessAssistantAdmin.bindUIActions(); // Trigger event when fully loaded $(document).trigger("BusinessAssistantReady"); }, //--------------------------------------------------------------------// // Events //--------------------------------------------------------------------// /** * Document ready. * * @since 1.0.0 */ ready: function () {}, /** * Window load. * * @since 1.0.0 */ load: function () { // Trigger resize once everything loaded. window.dispatchEvent(new Event("resize")); }, /** * Window resize. * * @since 1.0.0 */ resize: function () {}, //--------------------------------------------------------------------// // Functions //--------------------------------------------------------------------// }; // END var BusinessAssistantAdmin BusinessAssistantAdmin.init(); window.businessassistantadmin = BusinessAssistantAdmin; })(jQuery);