easy_menu 0.4.5 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5ab5af8a5c2025b34e45706804f14bc1491c70e0
|
|
4
|
+
data.tar.gz: 4f090a2e0b784be7622b7944cf61c9e0b352fa3d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ad02588e586a6e13dbb820270cf6087e5c3890bc3cac9e147e9115c4e1f3e6aa0bf21cf49b018c2097307aae1fd7dfc882cc0cf725aa6a3200a3932d34f7b412
|
|
7
|
+
data.tar.gz: ee776677c8ed61894ec0f1fc9d945d3ef4318df27a4036bd8f01a51bca3c0a7147140850782030d8401f7e1336427bb639406604dc126c30fb7727cc0501c58f
|
|
@@ -27,13 +27,16 @@ $(document).ready(function() {
|
|
|
27
27
|
$(menuBarRootSelector + '.menu_bar_content.with_menu .menu_bar_item').click(function(){
|
|
28
28
|
var mbc = $(this).closest('.menu_bar_content');
|
|
29
29
|
$(menuBarRootSelector + '.menu_bar_content.with_menu').not(mbc).removeClass('open');
|
|
30
|
-
mbc.toggleClass('open')
|
|
30
|
+
mbc.toggleClass('open')
|
|
31
|
+
.find('.menu').trigger('opened')
|
|
31
32
|
});
|
|
32
33
|
|
|
33
34
|
// Close the menu if the user clicked outside
|
|
34
35
|
$(document).click(function(event){
|
|
35
36
|
if ($(event.target).closest('.menu_bar_content.with_menu .menu_bar_item').length > 0) { return } // Don't close the menus if the click came from a menu
|
|
36
|
-
$(menuBarRootSelector + '.menu_bar_content.with_menu.open')
|
|
37
|
+
$(menuBarRootSelector + '.menu_bar_content.with_menu.open')
|
|
38
|
+
.removeClass('open')
|
|
39
|
+
.find('.menu').trigger('closed')
|
|
37
40
|
});
|
|
38
41
|
|
|
39
42
|
// Disable Elements with a disable condition when that condition is met
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: easy_menu
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nicholas Jakobsen
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2015-03-
|
|
12
|
+
date: 2015-03-10 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|