rails_admin_sliding_nav 0.0.1 → 0.0.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6c17f395a0c16285be0debf12f3e0e91dec55ba
|
4
|
+
data.tar.gz: 3aa4f0143ce85d13212d6c4cb7cdbcf9a9a5fdcd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f49209326911a355154854a790f93486b3634a5dee7ba5eece0d350f544ffbc49ec4ac0baa4d61c9ba9adb36a89c16ff8f8dbf50b98602378939c88ef88a883f
|
7
|
+
data.tar.gz: 3e4edfebca375af0138661756f7a1503cd8094c28d5110df2e51b2e010773bc9072bb4576658b80582c72333b6dca0bf0f054d1230b9d26d0f17da691d2ca89e
|
@@ -0,0 +1,22 @@
|
|
1
|
+
$(document).on('rails_admin.dom_ready', function(){
|
2
|
+
|
3
|
+
// change main container to 12 columns
|
4
|
+
$('body.rails_admin .container-fluid .row-fluid .span9').removeClass('span9').addClass('span12');
|
5
|
+
|
6
|
+
// append tab to menu, cache vars
|
7
|
+
var menu, tab;
|
8
|
+
menu = $('body.rails_admin .container-fluid .row-fluid .span3');
|
9
|
+
tab = $('<div class="well tab">Navigation</div>');
|
10
|
+
menu.append($tab);
|
11
|
+
|
12
|
+
// slide navigation
|
13
|
+
tab.on('click', function({
|
14
|
+
menu.toggleClass('active')
|
15
|
+
});
|
16
|
+
|
17
|
+
// hide navigation on nav item click
|
18
|
+
menu.on('click', 'ul.nav-list li a', function({
|
19
|
+
menu.removeClass('active')
|
20
|
+
});
|
21
|
+
|
22
|
+
});
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_admin_sliding_nav
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Franken
|
@@ -37,7 +37,7 @@ files:
|
|
37
37
|
- lib/rails_admin_sliding_nav.rb
|
38
38
|
- lib/rails_admin_sliding_nav/engine.rb
|
39
39
|
- lib/rails_admin_sliding_nav/version.rb
|
40
|
-
- vendor/assets/javascripts/rails_admin/themes/sliding_nav/ui.
|
40
|
+
- vendor/assets/javascripts/rails_admin/themes/sliding_nav/ui.js
|
41
41
|
- vendor/assets/stylesheets/rails_admin/themes/sliding_nav/mixins.scss
|
42
42
|
- vendor/assets/stylesheets/rails_admin/themes/sliding_nav/theming.scss
|
43
43
|
- vendor/assets/stylesheets/rails_admin/themes/sliding_nav/variables.scss
|
@@ -1,16 +0,0 @@
|
|
1
|
-
$(document).on 'rails_admin.dom_ready', ->
|
2
|
-
# change main container to 12 columns
|
3
|
-
$('body.rails_admin .container-fluid .row-fluid .span9').removeClass('span9').addClass('span12')
|
4
|
-
|
5
|
-
# append tab to menu, cache vars
|
6
|
-
$menu = $('body.rails_admin .container-fluid .row-fluid .span3')
|
7
|
-
$tab = $('<div class="well tab">Navigation</div>')
|
8
|
-
$menu.append $tab
|
9
|
-
|
10
|
-
# slide navigation
|
11
|
-
$tab.on 'click', ->
|
12
|
-
$menu.toggleClass('active')
|
13
|
-
|
14
|
-
# hide navigation on nav item click
|
15
|
-
$menu.on 'click', 'ul.nav-list li a', ->
|
16
|
-
$menu.removeClass('active')
|