admin_lte-rails 2.3.2.1 → 2.3.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6bb00fbf5ef8772bc90911581ac7669f05f83767
4
- data.tar.gz: a95771802d976c58505caf1e552d5ac2e9da28d6
3
+ metadata.gz: e40b387ab722b17dce598ce82bb4fab1ea7da40f
4
+ data.tar.gz: e01efa2f19c4382bdc04b2f73564d45a0fba7b24
5
5
  SHA512:
6
- metadata.gz: 9675afec533ec64ae549635b0a9fb27683665ca72a68f19f04ffd8eeed2fcfcc6dc28fa05acb3d066ed77407e230fd567f60b9b0ac61f6ccbd6792012cf19959
7
- data.tar.gz: 764dd1c7e136fd217522217f0383b87fa9df3ff4c293e246b4f477387d1be4f446e42e9ee20d05b5f71853bd8c5d04c50bda5b0448ef9905e3947a6b92cab0a4
6
+ metadata.gz: 6c6bc7ca96440005a78e75835f870f178be1975133cabcb70cca73437a2d677670e5974e1cd6a2c75d8b82be1173cfc96d650283792c90908840cd174b204b27
7
+ data.tar.gz: 852a8cdf8b66b0bc8cacbf92b9ccd73c83dc1086bea2bdd24e1b2ddaab0885c1d51c8d916a61be74ff9a2c350b3e0cb783b1f644ad13cd63b9817e319caadf2f
data/.gitignore CHANGED
@@ -8,3 +8,6 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  node_modules/
11
+ app/assets/javascripts/admin_lte/.js
12
+ app/assets/javascripts/admin_lte/demo.js
13
+ app/assets/javascripts/admin_lte/pages/
data/Rakefile CHANGED
@@ -19,7 +19,7 @@ task :convert do
19
19
  lib_path = File.expand_path('../lib', __FILE__)
20
20
  cssjanus = File.expand_path('../lib/to_rtl.js', __FILE__)
21
21
  style_dir = "#{app_path}/assets/stylesheets/admin_lte"
22
- js_dir = "#{app_path}/assets/javscripts/admin-lte"
22
+ js_dir = "#{app_path}/assets/javascripts/admin_lte"
23
23
 
24
24
  orig_style = "#{dir}/stylesheets/admin-lte"
25
25
  admin_lte_font = "#{style_dir}/admin_lte_font.scss"
@@ -48,7 +48,7 @@ task :convert do
48
48
  `tail -n +2 #{file} > #{new_path}`
49
49
  end
50
50
 
51
- `nodejs #{cssjanus} #{new_path} > #{rtl_path}`
51
+ `node #{cssjanus} #{new_path} > #{rtl_path}`
52
52
  puts "================="
53
53
  end
54
54
  end
@@ -65,21 +65,21 @@ task :convert do
65
65
  FileUtils.cp("#{lib_path}/rtl/_sidebar_rtl_fix.scss",
66
66
  "#{style_dir}/rtl/sidebar_rtl_fix.scss")
67
67
 
68
- # Dir.glob("#{dir}/javascripts/**/*") do |file|
68
+ Dir.glob("#{dir}/javascripts/**/*") do |file|
69
69
 
70
- # new_path = file.gsub(orig_js, "#{js_dir}/")
70
+ new_path = file.gsub(orig_js, "#{js_dir}/")
71
71
 
72
- # FileUtils.mkdir_p File.dirname(new_path)
72
+ FileUtils.mkdir_p File.dirname(new_path)
73
73
 
74
74
 
75
- # unless File.directory? file
76
- # puts "Source: #{file}"
77
- # puts "DST: #{new_path}"
78
- # puts "================="
75
+ unless File.directory? file
76
+ puts "Source: #{file}"
77
+ puts "DST: #{new_path}"
78
+ puts "================="
79
79
 
80
- # FileUtils.cp(file, new_path)
81
- # end
82
- # end
80
+ FileUtils.cp(file, new_path)
81
+ end
82
+ end
83
83
 
84
84
 
85
85
 
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ['lib']
21
21
 
22
- spec.add_dependency 'rails-assets-admin-lte', '~> 2.3.0'
22
+ spec.add_dependency 'rails-assets-admin-lte', '~> 2.3.2'
23
23
  spec.add_dependency 'jquery-rails'
24
24
  spec.add_dependency 'font-awesome-rails'
25
25
  spec.add_dependency 'jquery-ui-rails'
@@ -7,7 +7,7 @@
7
7
  * @Author Almsaeed Studio
8
8
  * @Support <http://www.almsaeedstudio.com>
9
9
  * @Email <support@almsaeedstudio.com>
10
- * @version 2.1.2
10
+ * @version 2.3.2
11
11
  * @license MIT <http://opensource.org/licenses/MIT>
12
12
  */
13
13
 
@@ -140,11 +140,14 @@ $.AdminLTE.options = {
140
140
  $(function () {
141
141
  "use strict";
142
142
 
143
+ //Fix for IE page transitions
144
+ $("body").removeClass("hold-transition");
145
+
143
146
  //Extend options if external options exist
144
147
  if (typeof AdminLTEOptions !== "undefined") {
145
148
  $.extend(true,
146
- $.AdminLTE.options,
147
- AdminLTEOptions);
149
+ $.AdminLTE.options,
150
+ AdminLTEOptions);
148
151
  }
149
152
 
150
153
  //Easy access to options
@@ -311,7 +314,7 @@ function _init() {
311
314
  var screenSizes = $.AdminLTE.options.screenSizes;
312
315
 
313
316
  //Enable sidebar toggle
314
- $(toggleBtn).on('click', function (e) {
317
+ $(document).on('click', toggleBtn, function (e) {
315
318
  e.preventDefault();
316
319
 
317
320
  //Enable sidebar push menu
@@ -341,8 +344,8 @@ function _init() {
341
344
 
342
345
  //Enable expand on hover for sidebar mini
343
346
  if ($.AdminLTE.options.sidebarExpandOnHover
344
- || ($('body').hasClass('fixed')
345
- && $('body').hasClass('sidebar-mini'))) {
347
+ || ($('body').hasClass('fixed')
348
+ && $('body').hasClass('sidebar-mini'))) {
346
349
  this.expandOnHover();
347
350
  }
348
351
  },
@@ -352,14 +355,14 @@ function _init() {
352
355
  //Expand sidebar on hover
353
356
  $('.main-sidebar').hover(function () {
354
357
  if ($('body').hasClass('sidebar-mini')
355
- && $("body").hasClass('sidebar-collapse')
356
- && $(window).width() > screenWidth) {
358
+ && $("body").hasClass('sidebar-collapse')
359
+ && $(window).width() > screenWidth) {
357
360
  _this.expand();
358
361
  }
359
362
  }, function () {
360
363
  if ($('body').hasClass('sidebar-mini')
361
- && $('body').hasClass('sidebar-expanded-on-hover')
362
- && $(window).width() > screenWidth) {
364
+ && $('body').hasClass('sidebar-expanded-on-hover')
365
+ && $(window).width() > screenWidth) {
363
366
  _this.collapse();
364
367
  }
365
368
  });
@@ -385,13 +388,13 @@ function _init() {
385
388
  $.AdminLTE.tree = function (menu) {
386
389
  var _this = this;
387
390
  var animationSpeed = $.AdminLTE.options.animationSpeed;
388
- $(document).on('click', menu + ' li a', function (e) {
391
+ $(menu).on('click', 'li a', function (e) {
389
392
  //Get the clicked link and the next element
390
393
  var $this = $(this);
391
394
  var checkElement = $this.next();
392
395
 
393
396
  //Check if the next element is a menu and is visible
394
- if ((checkElement.is('.treeview-menu')) && (checkElement.is(':visible'))) {
397
+ if ((checkElement.is('.treeview-menu')) && (checkElement.is(':visible')) && (!$('body').hasClass('sidebar-collapse'))) {
395
398
  //Close the menu
396
399
  checkElement.slideUp(animationSpeed, function () {
397
400
  checkElement.removeClass('menu-open');
@@ -452,7 +455,7 @@ function _init() {
452
455
  e.preventDefault();
453
456
  //If the sidebar is not open
454
457
  if (!sidebar.hasClass('control-sidebar-open')
455
- && !$('body').hasClass('control-sidebar-open')) {
458
+ && !$('body').hasClass('control-sidebar-open')) {
456
459
  //Open the sidebar
457
460
  _this.open(sidebar, o.slide);
458
461
  } else {
@@ -560,8 +563,8 @@ function _init() {
560
563
  if (!box.hasClass("collapsed-box")) {
561
564
  //Convert minus into plus
562
565
  element.children(":first")
563
- .removeClass(_this.icons.collapse)
564
- .addClass(_this.icons.open);
566
+ .removeClass(_this.icons.collapse)
567
+ .addClass(_this.icons.open);
565
568
  //Hide the content
566
569
  box_content.slideUp(_this.animationSpeed, function () {
567
570
  box.addClass("collapsed-box");
@@ -569,8 +572,8 @@ function _init() {
569
572
  } else {
570
573
  //Convert plus into minus
571
574
  element.children(":first")
572
- .removeClass(_this.icons.open)
573
- .addClass(_this.icons.collapse);
575
+ .removeClass(_this.icons.open)
576
+ .addClass(_this.icons.collapse);
574
577
  //Show the content
575
578
  box_content.slideDown(_this.animationSpeed, function () {
576
579
  box.removeClass("collapsed-box");
@@ -669,14 +672,16 @@ function _init() {
669
672
 
670
673
  })(jQuery);
671
674
 
672
- /*
673
- * EXPLICIT BOX ACTIVATION
675
+ /*
676
+ * EXPLICIT BOX CONTROLS
674
677
  * -----------------------
675
678
  * This is a custom plugin to use with the component BOX. It allows you to activate
676
- * a box inserted in the DOM after the app.js was loaded.
679
+ * a box inserted in the DOM after the app.js was loaded, toggle and remove box.
677
680
  *
678
681
  * @type plugin
679
682
  * @usage $("#box-widget").activateBox();
683
+ * @usage $("#box-widget").toggleBox();
684
+ * @usage $("#box-widget").removeBox();
680
685
  */
681
686
  (function ($) {
682
687
 
@@ -686,6 +691,16 @@ function _init() {
686
691
  $.AdminLTE.boxWidget.activate(this);
687
692
  };
688
693
 
694
+ $.fn.toggleBox = function(){
695
+ var button = $($.AdminLTE.boxWidget.selectors.collapse, this);
696
+ $.AdminLTE.boxWidget.collapse(button);
697
+ };
698
+
699
+ $.fn.removeBox = function(){
700
+ var button = $($.AdminLTE.boxWidget.selectors.remove, this);
701
+ $.AdminLTE.boxWidget.remove(button);
702
+ };
703
+
689
704
  })(jQuery);
690
705
 
691
706
  /*
@@ -9,8 +9,8 @@ datepicker3.css
9
9
  daterangepicker-bs3
10
10
  bootstrap3-wysihtml5
11
11
  */
12
- //= require admin_lte/ltr/AdminLTE
13
- //= require admin_lte/ltr/skins/_all-skins
14
12
  //= require select2
15
13
  //= require select2-bootstrap
14
+ //= require admin_lte/ltr/AdminLTE
15
+ //= require admin_lte/ltr/skins/_all-skins
16
16
  //= require jquery-icheck/skins/flat/_all
@@ -9,9 +9,9 @@ datepicker3.css
9
9
  daterangepicker-bs3
10
10
  bootstrap3-wysihtml5
11
11
  */
12
- //= require admin_lte/rtl/AdminLTE
13
- //= require admin_lte/rtl/skins/_all-skins
14
12
  //= require select2
15
13
  //= require select2-bootstrap
14
+ //= require admin_lte/rtl/AdminLTE
15
+ //= require admin_lte/rtl/skins/_all-skins
16
16
  //= require jquery-icheck/skins/flat/_all
17
17
  //= require admin_lte/rtl/sidebar_rtl_fix
@@ -1,3 +1,3 @@
1
1
  module AdminLte
2
- VERSION = '2.3.2.1'
2
+ VERSION = '2.3.2.2'
3
3
  end
@@ -9,8 +9,8 @@ datepicker3.css
9
9
  daterangepicker-bs3
10
10
  bootstrap3-wysihtml5
11
11
  */
12
- //= require admin_lte/ltr/AdminLTE
13
- //= require admin_lte/ltr/skins/_all-skins
14
12
  //= require select2
15
13
  //= require select2-bootstrap
14
+ //= require admin_lte/ltr/AdminLTE
15
+ //= require admin_lte/ltr/skins/_all-skins
16
16
  //= require jquery-icheck/skins/flat/_all
@@ -9,9 +9,9 @@ datepicker3.css
9
9
  daterangepicker-bs3
10
10
  bootstrap3-wysihtml5
11
11
  */
12
- //= require admin_lte/rtl/AdminLTE
13
- //= require admin_lte/rtl/skins/_all-skins
14
12
  //= require select2
15
13
  //= require select2-bootstrap
14
+ //= require admin_lte/rtl/AdminLTE
15
+ //= require admin_lte/rtl/skins/_all-skins
16
16
  //= require jquery-icheck/skins/flat/_all
17
17
  //= require admin_lte/rtl/sidebar_rtl_fix
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: admin_lte-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.2.1
4
+ version: 2.3.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sameer Rahmani
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-09 00:00:00.000000000 Z
11
+ date: 2015-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails-assets-admin-lte
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.3.0
19
+ version: 2.3.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.3.0
26
+ version: 2.3.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: jquery-rails
29
29
  requirement: !ruby/object:Gem::Requirement