PHP Classes

File: public/assets/js/as/app.js

Recommend this page to a friend!
  Classes of Wang   Tagydes   public/assets/js/as/app.js   Download  
File: public/assets/js/as/app.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Tagydes
E-commerce Web administration panel and API
Author: By
Last change:
Date: 1 year ago
Size: 897 bytes
 

Contents

Class file image Download
var as = {}; as.toggleSidebar = function () { $(".sidebar").toggleClass('expanded'); }; as.hideNotifications = function () { $(".alert-notification").slideUp(600, function () { $(this).remove(); }) }; as.init = function () { $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); $("#sidebar-toggle").click(as.toggleSidebar); $('[data-toggle="tooltip"]').tooltip(); $('[data-toggle="popover"]').popover(); $(".alert-notification .close").click(as.hideNotifications); setTimeout(as.hideNotifications, 3500); $("a[data-toggle=loader], button[data-toggle=loader]").click(function () { if ($(this).parents('form').valid()) { as.btn.loading($(this), $(this).data('loading-text')); $(this).parents('form').submit(); } }); }; $(document).ready(as.init);