public/dashboard/bower_components/admin-lte/dist/js/app.js
function () {
      //Get the object
      var _this = this;
      //Update options
      var o = $.AdminLTE.options.controlSidebarOptions;
      //Get the sidebar
      var sidebar = $(o.selector);
      //The toggle button
      var btn = $(o.toggleBtnSelector);

      //Listen to the click event
      btn.on('click', function (e) {
        e.preventDefault();
        //If the sidebar is not open
        if (!sidebar.hasClass('control-sidebar-open')
            && !$('body').hasClass('control-sidebar-open')) {
          //Open the sidebar
          _this.open(sidebar, o.slide);
        } else {
          _this.close(sidebar, o.slide);
        }
      });

      //If the body has a boxed layout, fix the sidebar bg position
      var bg = $(".control-sidebar-bg");
      _this._fix(bg);

      //If the body has a fixed layout, make the control sidebar fixed
      if ($('body').hasClass('fixed')) {
        _this._fixForFixed(sidebar);
      } else {
        //If the content height is less than the sidebar's height, force max height
        if ($('.content-wrapper, .right-side').height() < sidebar.height()) {
          _this._fixForContent(sidebar);
        }
      }
    }
function () {
      //Get the object
      var _this = this;
      //Update options
      var o = $.AdminLTE.options.controlSidebarOptions;
      //Get the sidebar
      var sidebar = $(o.selector);
      //The toggle button
      var btn = $(o.toggleBtnSelector);

      //Listen to the click event
      btn.on('click', function (e) {
        e.preventDefault();
        //If the sidebar is not open
        if (!sidebar.hasClass('control-sidebar-open')
            && !$('body').hasClass('control-sidebar-open')) {
          //Open the sidebar
          _this.open(sidebar, o.slide);
        } else {
          _this.close(sidebar, o.slide);
        }
      });

      //If the body has a boxed layout, fix the sidebar bg position
      var bg = $(".control-sidebar-bg");
      _this._fix(bg);

      //If the body has a fixed layout, make the control sidebar fixed
      if ($('body').hasClass('fixed')) {
        _this._fixForFixed(sidebar);
      } else {
        //If the content height is less than the sidebar's height, force max height
        if ($('.content-wrapper, .right-side').height() < sidebar.height()) {
          _this._fixForContent(sidebar);
        }
      }
    }
function ( ) { //Get the object var _this = this ; //Update options var o = $ . AdminLTE . options . controlSidebarOptions ; //Get the sidebar var sidebar = $ ( o . selector ) ; //The toggle button var btn = $ ( o . toggleBtnSelector ) ; //Listen to the click event btn . on ( 'click' , function ( e ) { e . preventDefault ( ) ; //If the sidebar is not open if ( ! sidebar . hasClass ( 'control-sidebar-open' ) && ! $ ( 'body' ) . hasClass ( 'control-sidebar-open' ) ) { //Open the sidebar _this . open ( sidebar , o . slide ) ; } else { _this . close ( sidebar , o . slide ) ; } } ) ; //If the body has a boxed layout, fix the sidebar bg position var bg = $ ( ".control-sidebar-bg" ) ; _this . _fix ( bg ) ; //If the body has a fixed layout, make the control sidebar fixed if ( $ ( 'body' ) . hasClass ( 'fixed' ) ) { _this . _fixForFixed ( sidebar ) ; } else { //If the content height is less than the sidebar's height, force max height if ( $ ( '.content-wrapper, .right-side' ) . height ( ) < sidebar . height ( ) ) { _this . _fixForContent ( sidebar ) ; } } }
instantiate the object
instantiate the object