camaleon_cms 2.8.1 → 2.8.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of camaleon_cms might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c57a186f81cc44f2311424539229759e1dc5a95605dc6a109c0d1ebbaf25723
4
- data.tar.gz: '086922b2cfae7224ff3825408337292376ab32efd810fb9efae9838bf3f8e680'
3
+ metadata.gz: e4dd01f09f339a830605d7fa03643e5693b0f5e8216c14ecac711cc879bdab02
4
+ data.tar.gz: a104dedbd96df0848096426e2b8302eccf288d16c6220001f789c55ae1f19476
5
5
  SHA512:
6
- metadata.gz: 5093f50d36c20a5f59cb88036ed7b9786e4c1fb293f1e51f212ea896390b8ce5d3e645965087ca7cd57f0aa6f4e9a4cf4848f3da5da21b6cd382e3bbb6354d9a
7
- data.tar.gz: b34b4f71e8eb82317c09b2ff2f687751f2c03af864824d8468eb108248b59570d88313e691bc959251dcaf74d218d4f0a2ec76558068fd5e5087465c20bdf02e
6
+ metadata.gz: e3ba4796050214ec417a91d1b2784dd5bfc548e8f32b8d9e5147b5d9dbc942e7ce8eac9cfbd8f301372075989325f413d94d8be5647315891884e7f59a231f4a
7
+ data.tar.gz: c5a56b34b9b16f11eac68e682d17b90e4820097e4b439b4890f0454ecf6a71f9aba4cd2080c371ff0dbe2798335707dffbe9924977d7ae756a2be4e16a594386
@@ -6,8 +6,8 @@
6
6
  *
7
7
  * @Author Almsaeed Studio
8
8
  * @Support <http://www.almsaeedstudio.com>
9
- * @Email <support@almsaeedstudio.com>
10
- * @version 2.3.1
9
+ * @Email <abdullah@almsaeedstudio.com>
10
+ * @version 2.3.11
11
11
  * @license MIT <http://opensource.org/licenses/MIT>
12
12
  */
13
13
 
@@ -48,21 +48,23 @@ $.AdminLTE.options = {
48
48
  //Activate sidebar push menu
49
49
  sidebarPushMenu: true,
50
50
  //Activate sidebar slimscroll if the fixed layout is set (requires SlimScroll Plugin)
51
- sidebarSlimScroll: false,
51
+ sidebarSlimScroll: true,
52
52
  //Enable sidebar expand on hover effect for sidebar mini
53
53
  //This option is forced to true if both the fixed layout and sidebar mini
54
54
  //are used together
55
55
  sidebarExpandOnHover: false,
56
56
  //BoxRefresh Plugin
57
- enableBoxRefresh: false,
57
+ enableBoxRefresh: true,
58
58
  //Bootstrap.js tooltip
59
- enableBSToppltip: false,
59
+ enableBSToppltip: true,
60
60
  BSTooltipSelector: "[data-toggle='tooltip']",
61
61
  //Enable Fast Click. Fastclick.js creates a more
62
62
  //native touch experience with touch devices. If you
63
63
  //choose to enable the plugin, make sure you load the script
64
64
  //before AdminLTE's app.js
65
- enableFastclick: true,
65
+ enableFastclick: false,
66
+ //Control Sidebar Tree views
67
+ enableControlTreeView: true,
66
68
  //Control Sidebar Options
67
69
  enableControlSidebar: true,
68
70
  controlSidebarOptions: {
@@ -96,7 +98,7 @@ $.AdminLTE.options = {
96
98
  //Direct Chat plugin options
97
99
  directChat: {
98
100
  //Enable direct chat by default
99
- enable: false,
101
+ enable: true,
100
102
  //The button to open and close the chat contacts pane
101
103
  contactToggleSelector: '[data-widget="chat-pane-toggle"]'
102
104
  },
@@ -160,7 +162,9 @@ $(function () {
160
162
  $.AdminLTE.layout.activate();
161
163
 
162
164
  //Enable sidebar tree view controls
163
- $.AdminLTE.tree('.sidebar');
165
+ if (o.enableControlTreeView) {
166
+ $.AdminLTE.tree('.sidebar');
167
+ }
164
168
 
165
169
  //Enable control sidebar
166
170
  if (o.enableControlSidebar) {
@@ -184,7 +188,8 @@ $(function () {
184
188
  //Activate Bootstrap tooltip
185
189
  if (o.enableBSToppltip) {
186
190
  $('body').tooltip({
187
- selector: o.BSTooltipSelector
191
+ selector: o.BSTooltipSelector,
192
+ container: 'body'
188
193
  });
189
194
  }
190
195
 
@@ -242,20 +247,24 @@ function _init() {
242
247
  var _this = this;
243
248
  _this.fix();
244
249
  _this.fixSidebar();
250
+ $('body, html, .wrapper').css('height', 'auto');
245
251
  $(window, ".wrapper").resize(function () {
246
252
  _this.fix();
247
253
  _this.fixSidebar();
248
254
  });
249
255
  },
250
256
  fix: function () {
257
+ // Remove overflow from .wrapper if layout-boxed exists
258
+ $(".layout-boxed > .wrapper").css('overflow', 'hidden');
251
259
  //Get window height and the wrapper height
252
- var neg = $('.main-header').outerHeight() + $('.main-footer').outerHeight();
260
+ var footer_height = $('.main-footer').outerHeight() || 0;
261
+ var neg = $('.main-header').outerHeight() + footer_height;
253
262
  var window_height = $(window).height();
254
- var sidebar_height = $(".sidebar").height();
263
+ var sidebar_height = $(".sidebar").height() || 0;
255
264
  //Set the min-height of the content and sidebar based on the
256
265
  //the height of the document.
257
266
  if ($("body").hasClass("fixed")) {
258
- $(".content-wrapper, .right-side").css('min-height', window_height - $('.main-footer').outerHeight());
267
+ $(".content-wrapper, .right-side").css('min-height', window_height - footer_height);
259
268
  } else {
260
269
  var postSetWidth;
261
270
  if (window_height >= sidebar_height) {
@@ -291,7 +300,7 @@ function _init() {
291
300
  //Destroy if it exists
292
301
  $(".sidebar").slimScroll({destroy: true}).height("auto");
293
302
  //Add slimscroll
294
- $(".sidebar").slimscroll({
303
+ $(".sidebar").slimScroll({
295
304
  height: ($(window).height() - $(".main-header").height()) + "px",
296
305
  color: "rgba(0,0,0,0.2)",
297
306
  size: "3px"
@@ -345,7 +354,7 @@ function _init() {
345
354
  //Enable expand on hover for sidebar mini
346
355
  if ($.AdminLTE.options.sidebarExpandOnHover
347
356
  || ($('body').hasClass('fixed')
348
- && $('body').hasClass('sidebar-mini'))) {
357
+ && $('body').hasClass('sidebar-mini'))) {
349
358
  this.expandOnHover();
350
359
  }
351
360
  },
@@ -388,47 +397,48 @@ function _init() {
388
397
  $.AdminLTE.tree = function (menu) {
389
398
  var _this = this;
390
399
  var animationSpeed = $.AdminLTE.options.animationSpeed;
391
- $(document).on('click', menu + ' li a', function (e) {
392
- //Get the clicked link and the next element
393
- var $this = $(this);
394
- var checkElement = $this.next();
395
-
396
- //Check if the next element is a menu and is visible
397
- if ((checkElement.is('.treeview-menu')) && (checkElement.is(':visible'))) {
398
- //Close the menu
399
- checkElement.slideUp(animationSpeed, function () {
400
- checkElement.removeClass('menu-open');
401
- //Fix the layout in case the sidebar stretches over the height of the window
402
- //_this.layout.fix();
403
- });
404
- checkElement.parent("li").removeClass("active");
405
- }
406
- //If the menu is not visible
407
- else if ((checkElement.is('.treeview-menu')) && (!checkElement.is(':visible'))) {
408
- //Get the parent menu
409
- var parent = $this.parents('ul').first();
410
- //Close all open menus within the parent
411
- var ul = parent.find('ul:visible').slideUp(animationSpeed);
412
- //Remove the menu-open class from the parent
413
- ul.removeClass('menu-open');
414
- //Get the parent li
415
- var parent_li = $this.parent("li");
416
-
417
- //Open the target menu and add the menu-open class
418
- checkElement.slideDown(animationSpeed, function () {
419
- //Add the class active to the parent li
420
- checkElement.addClass('menu-open');
421
- parent.find('li.active').removeClass('active');
422
- parent_li.addClass('active');
423
- //Fix the layout in case the sidebar stretches over the height of the window
424
- _this.layout.fix();
400
+ $(document).off('click', menu + ' li a')
401
+ .on('click', menu + ' li a', function (e) {
402
+ //Get the clicked link and the next element
403
+ var $this = $(this);
404
+ var checkElement = $this.next();
405
+
406
+ //Check if the next element is a menu and is visible
407
+ if ((checkElement.is('.treeview-menu')) && (checkElement.is(':visible')) && (!$('body').hasClass('sidebar-collapse'))) {
408
+ //Close the menu
409
+ checkElement.slideUp(animationSpeed, function () {
410
+ checkElement.removeClass('menu-open');
411
+ //Fix the layout in case the sidebar stretches over the height of the window
412
+ //_this.layout.fix();
413
+ });
414
+ checkElement.parent("li").removeClass("active");
415
+ }
416
+ //If the menu is not visible
417
+ else if ((checkElement.is('.treeview-menu')) && (!checkElement.is(':visible'))) {
418
+ //Get the parent menu
419
+ var parent = $this.parents('ul').first();
420
+ //Close all open menus within the parent
421
+ var ul = parent.find('ul:visible').slideUp(animationSpeed);
422
+ //Remove the menu-open class from the parent
423
+ ul.removeClass('menu-open');
424
+ //Get the parent li
425
+ var parent_li = $this.parent("li");
426
+
427
+ //Open the target menu and add the menu-open class
428
+ checkElement.slideDown(animationSpeed, function () {
429
+ //Add the class active to the parent li
430
+ checkElement.addClass('menu-open');
431
+ parent.find('li.active').removeClass('active');
432
+ parent_li.addClass('active');
433
+ //Fix the layout in case the sidebar stretches over the height of the window
434
+ _this.layout.fix();
435
+ });
436
+ }
437
+ //if this isn't a link, prevent the page from being redirected
438
+ if (checkElement.is('.treeview-menu')) {
439
+ e.preventDefault();
440
+ }
425
441
  });
426
- }
427
- //if this isn't a link, prevent the page from being redirected
428
- if (checkElement.is('.treeview-menu')) {
429
- e.preventDefault();
430
- }
431
- });
432
442
  };
433
443
 
434
444
  /* ControlSidebar
@@ -501,9 +511,13 @@ function _init() {
501
511
  if ($("body").hasClass('layout-boxed')) {
502
512
  sidebar.css('position', 'absolute');
503
513
  sidebar.height($(".wrapper").height());
514
+ if (_this.hasBindedResize) {
515
+ return;
516
+ }
504
517
  $(window).resize(function () {
505
518
  _this._fix(sidebar);
506
519
  });
520
+ _this.hasBindedResize = true;
507
521
  } else {
508
522
  sidebar.css({
509
523
  'position': 'fixed',
@@ -672,7 +686,7 @@ function _init() {
672
686
 
673
687
  })(jQuery);
674
688
 
675
- /*
689
+ /*
676
690
  * EXPLICIT BOX CONTROLS
677
691
  * -----------------------
678
692
  * This is a custom plugin to use with the component BOX. It allows you to activate
@@ -691,12 +705,12 @@ function _init() {
691
705
  $.AdminLTE.boxWidget.activate(this);
692
706
  };
693
707
 
694
- $.fn.toggleBox = function(){
708
+ $.fn.toggleBox = function () {
695
709
  var button = $($.AdminLTE.boxWidget.selectors.collapse, this);
696
710
  $.AdminLTE.boxWidget.collapse(button);
697
711
  };
698
712
 
699
- $.fn.removeBox = function(){
713
+ $.fn.removeBox = function () {
700
714
  var button = $($.AdminLTE.boxWidget.selectors.remove, this);
701
715
  $.AdminLTE.boxWidget.remove(button);
702
716
  };