admin_lte-rails 2.3.0.3 → 2.3.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 99937259b4fc8216d6a9d3d676269441c534cbe1
4
- data.tar.gz: 3bec561fa5707baf023bf8d7b5c74aea5e067d9e
3
+ metadata.gz: 6bb00fbf5ef8772bc90911581ac7669f05f83767
4
+ data.tar.gz: a95771802d976c58505caf1e552d5ac2e9da28d6
5
5
  SHA512:
6
- metadata.gz: 2ce2dd4a28abd9d3e4af6a741af126dd04ab37ddcef3065c33ec534c0b22f2e1a94c4fed5c15ae3c5cc5f284154219d1197077633fb1ba472651629048322ab7
7
- data.tar.gz: c21585be619b0a3778f606f5c2208e341aa38ce54f8dc97044f79ca1c9b21427592db05991ec26723372d7fca002ab97093bfaad95c7d139cb977693b52ecc96
6
+ metadata.gz: 9675afec533ec64ae549635b0a9fb27683665ca72a68f19f04ffd8eeed2fcfcc6dc28fa05acb3d066ed77407e230fd567f60b9b0ac61f6ccbd6792012cf19959
7
+ data.tar.gz: 764dd1c7e136fd217522217f0383b87fa9df3ff4c293e246b4f477387d1be4f446e42e9ee20d05b5f71853bd8c5d04c50bda5b0448ef9905e3947a6b92cab0a4
data/.gitignore CHANGED
@@ -8,6 +8,3 @@
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/javascripts/admin_lte"
22
+ js_dir = "#{app_path}/assets/javscripts/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
- `node #{cssjanus} #{new_path} > #{rtl_path}`
51
+ `nodejs #{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.2'
22
+ spec.add_dependency 'rails-assets-admin-lte', '~> 2.3.0'
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.3.2
10
+ * @version 2.1.2
11
11
  * @license MIT <http://opensource.org/licenses/MIT>
12
12
  */
13
13
 
@@ -140,14 +140,11 @@ $.AdminLTE.options = {
140
140
  $(function () {
141
141
  "use strict";
142
142
 
143
- //Fix for IE page transitions
144
- $("body").removeClass("hold-transition");
145
-
146
143
  //Extend options if external options exist
147
144
  if (typeof AdminLTEOptions !== "undefined") {
148
145
  $.extend(true,
149
- $.AdminLTE.options,
150
- AdminLTEOptions);
146
+ $.AdminLTE.options,
147
+ AdminLTEOptions);
151
148
  }
152
149
 
153
150
  //Easy access to options
@@ -314,7 +311,7 @@ function _init() {
314
311
  var screenSizes = $.AdminLTE.options.screenSizes;
315
312
 
316
313
  //Enable sidebar toggle
317
- $(document).on('click', toggleBtn, function (e) {
314
+ $(toggleBtn).on('click', function (e) {
318
315
  e.preventDefault();
319
316
 
320
317
  //Enable sidebar push menu
@@ -344,8 +341,8 @@ function _init() {
344
341
 
345
342
  //Enable expand on hover for sidebar mini
346
343
  if ($.AdminLTE.options.sidebarExpandOnHover
347
- || ($('body').hasClass('fixed')
348
- && $('body').hasClass('sidebar-mini'))) {
344
+ || ($('body').hasClass('fixed')
345
+ && $('body').hasClass('sidebar-mini'))) {
349
346
  this.expandOnHover();
350
347
  }
351
348
  },
@@ -355,14 +352,14 @@ function _init() {
355
352
  //Expand sidebar on hover
356
353
  $('.main-sidebar').hover(function () {
357
354
  if ($('body').hasClass('sidebar-mini')
358
- && $("body").hasClass('sidebar-collapse')
359
- && $(window).width() > screenWidth) {
355
+ && $("body").hasClass('sidebar-collapse')
356
+ && $(window).width() > screenWidth) {
360
357
  _this.expand();
361
358
  }
362
359
  }, function () {
363
360
  if ($('body').hasClass('sidebar-mini')
364
- && $('body').hasClass('sidebar-expanded-on-hover')
365
- && $(window).width() > screenWidth) {
361
+ && $('body').hasClass('sidebar-expanded-on-hover')
362
+ && $(window).width() > screenWidth) {
366
363
  _this.collapse();
367
364
  }
368
365
  });
@@ -388,13 +385,13 @@ function _init() {
388
385
  $.AdminLTE.tree = function (menu) {
389
386
  var _this = this;
390
387
  var animationSpeed = $.AdminLTE.options.animationSpeed;
391
- $(menu).on('click', 'li a', function (e) {
388
+ $(document).on('click', menu + ' li a', function (e) {
392
389
  //Get the clicked link and the next element
393
390
  var $this = $(this);
394
391
  var checkElement = $this.next();
395
392
 
396
393
  //Check if the next element is a menu and is visible
397
- if ((checkElement.is('.treeview-menu')) && (checkElement.is(':visible')) && (!$('body').hasClass('sidebar-collapse'))) {
394
+ if ((checkElement.is('.treeview-menu')) && (checkElement.is(':visible'))) {
398
395
  //Close the menu
399
396
  checkElement.slideUp(animationSpeed, function () {
400
397
  checkElement.removeClass('menu-open');
@@ -455,7 +452,7 @@ function _init() {
455
452
  e.preventDefault();
456
453
  //If the sidebar is not open
457
454
  if (!sidebar.hasClass('control-sidebar-open')
458
- && !$('body').hasClass('control-sidebar-open')) {
455
+ && !$('body').hasClass('control-sidebar-open')) {
459
456
  //Open the sidebar
460
457
  _this.open(sidebar, o.slide);
461
458
  } else {
@@ -563,8 +560,8 @@ function _init() {
563
560
  if (!box.hasClass("collapsed-box")) {
564
561
  //Convert minus into plus
565
562
  element.children(":first")
566
- .removeClass(_this.icons.collapse)
567
- .addClass(_this.icons.open);
563
+ .removeClass(_this.icons.collapse)
564
+ .addClass(_this.icons.open);
568
565
  //Hide the content
569
566
  box_content.slideUp(_this.animationSpeed, function () {
570
567
  box.addClass("collapsed-box");
@@ -572,8 +569,8 @@ function _init() {
572
569
  } else {
573
570
  //Convert plus into minus
574
571
  element.children(":first")
575
- .removeClass(_this.icons.open)
576
- .addClass(_this.icons.collapse);
572
+ .removeClass(_this.icons.open)
573
+ .addClass(_this.icons.collapse);
577
574
  //Show the content
578
575
  box_content.slideDown(_this.animationSpeed, function () {
579
576
  box.removeClass("collapsed-box");
@@ -672,16 +669,14 @@ function _init() {
672
669
 
673
670
  })(jQuery);
674
671
 
675
- /*
676
- * EXPLICIT BOX CONTROLS
672
+ /*
673
+ * EXPLICIT BOX ACTIVATION
677
674
  * -----------------------
678
675
  * This is a custom plugin to use with the component BOX. It allows you to activate
679
- * a box inserted in the DOM after the app.js was loaded, toggle and remove box.
676
+ * a box inserted in the DOM after the app.js was loaded.
680
677
  *
681
678
  * @type plugin
682
679
  * @usage $("#box-widget").activateBox();
683
- * @usage $("#box-widget").toggleBox();
684
- * @usage $("#box-widget").removeBox();
685
680
  */
686
681
  (function ($) {
687
682
 
@@ -691,16 +686,6 @@ function _init() {
691
686
  $.AdminLTE.boxWidget.activate(this);
692
687
  };
693
688
 
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
-
704
689
  })(jQuery);
705
690
 
706
691
  /*
@@ -9,8 +9,8 @@ datepicker3.css
9
9
  daterangepicker-bs3
10
10
  bootstrap3-wysihtml5
11
11
  */
12
- //= require select2
13
- //= require select2-bootstrap
14
12
  //= require admin_lte/ltr/AdminLTE
15
13
  //= require admin_lte/ltr/skins/_all-skins
14
+ //= require select2
15
+ //= require select2-bootstrap
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 select2
13
- //= require select2-bootstrap
14
12
  //= require admin_lte/rtl/AdminLTE
15
13
  //= require admin_lte/rtl/skins/_all-skins
14
+ //= require select2
15
+ //= require select2-bootstrap
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.0.3'
2
+ VERSION = '2.3.2.1'
3
3
  end
@@ -9,8 +9,8 @@ datepicker3.css
9
9
  daterangepicker-bs3
10
10
  bootstrap3-wysihtml5
11
11
  */
12
- //= require select2
13
- //= require select2-bootstrap
14
12
  //= require admin_lte/ltr/AdminLTE
15
13
  //= require admin_lte/ltr/skins/_all-skins
14
+ //= require select2
15
+ //= require select2-bootstrap
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 select2
13
- //= require select2-bootstrap
14
12
  //= require admin_lte/rtl/AdminLTE
15
13
  //= require admin_lte/rtl/skins/_all-skins
14
+ //= require select2
15
+ //= require select2-bootstrap
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.0.3
4
+ version: 2.3.2.1
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-19 00:00:00.000000000 Z
11
+ date: 2015-11-09 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.2
19
+ version: 2.3.0
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.2
26
+ version: 2.3.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: jquery-rails
29
29
  requirement: !ruby/object:Gem::Requirement