admin_lte-rails 2.3.2.1 → 2.3.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/Rakefile +12 -12
- data/admin_lte-rails.gemspec +1 -1
- data/app/assets/javascripts/admin_lte/app.js +35 -20
- data/app/assets/stylesheets/admin_lte/ltr/admin_lte.css +2 -2
- data/app/assets/stylesheets/admin_lte/rtl/admin_lte.css +2 -2
- data/lib/admin_lte-rails/version.rb +1 -1
- data/lib/ltr/admin_lte.css +2 -2
- data/lib/rtl/admin_lte.css +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e40b387ab722b17dce598ce82bb4fab1ea7da40f
|
4
|
+
data.tar.gz: e01efa2f19c4382bdc04b2f73564d45a0fba7b24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c6bc7ca96440005a78e75835f870f178be1975133cabcb70cca73437a2d677670e5974e1cd6a2c75d8b82be1173cfc96d650283792c90908840cd174b204b27
|
7
|
+
data.tar.gz: 852a8cdf8b66b0bc8cacbf92b9ccd73c83dc1086bea2bdd24e1b2ddaab0885c1d51c8d916a61be74ff9a2c350b3e0cb783b1f644ad13cd63b9817e319caadf2f
|
data/.gitignore
CHANGED
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/
|
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
|
-
`
|
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
|
-
|
68
|
+
Dir.glob("#{dir}/javascripts/**/*") do |file|
|
69
69
|
|
70
|
-
|
70
|
+
new_path = file.gsub(orig_js, "#{js_dir}/")
|
71
71
|
|
72
|
-
|
72
|
+
FileUtils.mkdir_p File.dirname(new_path)
|
73
73
|
|
74
74
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
75
|
+
unless File.directory? file
|
76
|
+
puts "Source: #{file}"
|
77
|
+
puts "DST: #{new_path}"
|
78
|
+
puts "================="
|
79
79
|
|
80
|
-
|
81
|
-
|
82
|
-
|
80
|
+
FileUtils.cp(file, new_path)
|
81
|
+
end
|
82
|
+
end
|
83
83
|
|
84
84
|
|
85
85
|
|
data/admin_lte-rails.gemspec
CHANGED
@@ -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.
|
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.
|
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
|
-
|
147
|
-
|
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
|
-
$(
|
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
|
-
|
345
|
-
|
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
|
-
|
356
|
-
|
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
|
-
|
362
|
-
|
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
|
-
$(
|
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
|
-
|
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
|
-
|
564
|
-
|
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
|
-
|
573
|
-
|
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
|
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
|
data/lib/ltr/admin_lte.css
CHANGED
@@ -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
|
data/lib/rtl/admin_lte.css
CHANGED
@@ -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.
|
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-
|
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.
|
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.
|
26
|
+
version: 2.3.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: jquery-rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|