(function ($, base) {
  var UILeftNavigation = {
    init: function () {
      var $leftNavi = $('#LeftNavigation');
      if ($(window).width()  > 1024 && !$leftNavi.hasClass('EdittingContainer')) {
        $leftNavi.perfectScrollbar({'suppressScrollX': true});
      }
      base.Browser.addOnResizeCallback('UILeftNavigation', function() {
        var $leftNavi = $('#LeftNavigation');
        if ($(window).width()  > 1024 && !$leftNavi.hasClass('EdittingContainer')) {
          $leftNavi.css('position', 'fixed').perfectScrollbar({'suppressScrollX': true});
        } else {
          $leftNavi.css('position', 'static').removeClass('ps').perfectScrollbar('destroy');
        }
      });
    }
  };
  return UILeftNavigation;
})($, base);
