//--------------------------------------------------------------------// // script that handles our admin functionality. //--------------------------------------------------------------------// (function ($) { "use strict"; /** * Holds most important methods that bootstrap the whole admin area. * * @type {Object} */ var AutomobileRentalAdmin = { /** * Start the engine. * * @since 1.0.0 */ init: function () { // Document ready $(document).ready(AutomobileRentalAdmin.ready); // Window load $(window).on("load", AutomobileRentalAdmin.load); // Bind UI actions AutomobileRentalAdmin.bindUIActions(); // Trigger event when fully loaded $(document).trigger("AutomobileRentalReady"); }, //--------------------------------------------------------------------// // 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 AutomobileRentalAdmin AutomobileRentalAdmin.init(); window.automobilerentaladmin = AutomobileRentalAdmin; })(jQuery);