diff --git a/README.md b/README.md index 03445f26502954426732a90d4687a73199f729d0..a2a19bad1f5b3a711e260b163fb2cd5e17baa19e 100644 --- a/README.md +++ b/README.md @@ -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/patches/og_menu-jquery_selector.patch b/patches/og_menu-jquery_selector.patch new file mode 100644 index 0000000000000000000000000000000000000000..e0de532777792a6bbe660d48f060444daa70bbfe --- /dev/null +++ b/patches/og_menu-jquery_selector.patch @@ -0,0 +1,29 @@ +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)); diff --git a/sites/all/modules/og_menu/og_menu.js b/sites/all/modules/og_menu/og_menu.js index 7802b3f5775844d4e92a43f8c975e068fc2334fd..2d58e79278d4cb7a809c313d60ca1994bccad07b 100644 --- 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));