Commit 10a46811 authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

[gh-677] Applied og_menu-jquery_selector.patch

parent a02250d3
......@@ -119,6 +119,10 @@ In this example the web root is /Library/WebServer/Documents and Apache runs as
- Convert FILE_ENTITY_DEFAULT_ALLOWED_EXTENSIONS to the new variable. See http://drupal.org/node/1846674#comment-6760286
* og_menu
- Applied og_menu-jquery_selector.patch. See:http://drupal.org/node/1051542
* redirect
- Merge global redirect functions into Redirect module. See http://drupal.org/node/905914
......
diff --git a/sites/all/modules/og_menu/og_menu.js b/sites/all/modules/og_menu/og_menu.js
index 7802b3f..2d58e79 100755
--- a/sites/all/modules/og_menu/og_menu.js
+++ b/sites/all/modules/og_menu/og_menu.js
@@ -1,7 +1,7 @@
/**
* @file
* Javascript magic. Shows the eligible menu options when switching groups.
- *
+ *
*/
(function ($) {
Drupal.behaviors.og_menu = {
@@ -44,7 +44,7 @@
if (values[0]) {
// Select the menu for the first available group.
for(var i in Drupal.settings.og_menu.menus) {
- if ((enabled === true) && $('.menu-parent-select option[value='+originalParent+']')) {
+ if ((enabled === true) && $('.menu-parent-select option[value="'+originalParent+'"]')) {
$('.menu-parent-select').val(originalParent);
}
else if (Drupal.settings.og_menu.menus[i] == values[0]) {
@@ -73,4 +73,4 @@
}
-}(jQuery));
\ No newline at end of file
+}(jQuery));
/**
* @file
* Javascript magic. Shows the eligible menu options when switching groups.
*
*
*/
(function ($) {
Drupal.behaviors.og_menu = {
......@@ -44,7 +44,7 @@
if (values[0]) {
// Select the menu for the first available group.
for(var i in Drupal.settings.og_menu.menus) {
if ((enabled === true) && $('.menu-parent-select option[value='+originalParent+']')) {
if ((enabled === true) && $('.menu-parent-select option[value="'+originalParent+'"]')) {
$('.menu-parent-select').val(originalParent);
}
else if (Drupal.settings.og_menu.menus[i] == values[0]) {
......@@ -73,4 +73,4 @@
}
}(jQuery));
\ No newline at end of file
}(jQuery));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment