rails_admin_sliding_nav 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails_admin_sliding_nav/version.rb +1 -1
- data/vendor/assets/javascripts/rails_admin/custom/ui.coffee +16 -0
- data/vendor/assets/stylesheets/rails_admin/themes/sliding_nav/theming.scss +1 -2
- metadata +2 -2
- data/vendor/assets/javascripts/rails_admin/themes/sliding_nav/ui.js +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 604bcf91414982637c594266e0bbcdd31bad799d
|
4
|
+
data.tar.gz: b5c2863542443c6d296b639377812540fd716110
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9153eff2c2d608048005ffbf7a9ab7e2584532084887daaa9d620b56b877fa3514ca8ea177da73533619a46e1f4eb55256d8e3db2b452a63a2de95831cd8bbac
|
7
|
+
data.tar.gz: 5303d0b53f44990d03069ee082058840f72647c3bc90037c99efdf8e001f4f66ef54bee79539c6424a09a31b8ba4d72c939cedab200a66a48862bdd6b0607140
|
@@ -0,0 +1,16 @@
|
|
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')
|
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.3
|
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/
|
40
|
+
- vendor/assets/javascripts/rails_admin/custom/ui.coffee
|
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,22 +0,0 @@
|
|
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
|
-
});
|