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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d6c17f395a0c16285be0debf12f3e0e91dec55ba
4
- data.tar.gz: 3aa4f0143ce85d13212d6c4cb7cdbcf9a9a5fdcd
3
+ metadata.gz: 604bcf91414982637c594266e0bbcdd31bad799d
4
+ data.tar.gz: b5c2863542443c6d296b639377812540fd716110
5
5
  SHA512:
6
- metadata.gz: f49209326911a355154854a790f93486b3634a5dee7ba5eece0d350f544ffbc49ec4ac0baa4d61c9ba9adb36a89c16ff8f8dbf50b98602378939c88ef88a883f
7
- data.tar.gz: 3e4edfebca375af0138661756f7a1503cd8094c28d5110df2e51b2e010773bc9072bb4576658b80582c72333b6dca0bf0f054d1230b9d26d0f17da691d2ca89e
6
+ metadata.gz: 9153eff2c2d608048005ffbf7a9ab7e2584532084887daaa9d620b56b877fa3514ca8ea177da73533619a46e1f4eb55256d8e3db2b452a63a2de95831cd8bbac
7
+ data.tar.gz: 5303d0b53f44990d03069ee082058840f72647c3bc90037c99efdf8e001f4f66ef54bee79539c6424a09a31b8ba4d72c939cedab200a66a48862bdd6b0607140
@@ -1,3 +1,3 @@
1
1
  module RailsAdminSlidingNav
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -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')
@@ -27,5 +27,4 @@ body.rails_admin .container-fluid .row-fluid .span3 {
27
27
  body.rails_admin .container-fluid .row-fluid .span12 {
28
28
  margin: 0;
29
29
  padding-top: 50px;
30
- }
31
-
30
+ }
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.2
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/themes/sliding_nav/ui.js
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
- });