From 8058126e635b9600f97d9e3b61ed2ec79ad96c78 Mon Sep 17 00:00:00 2001 From: Olivier DEPIESSE Date: Fri, 13 Sep 2013 15:31:52 +0200 Subject: [PATCH] Update jquery.polyglot.language.switcher.js fix attr('value') to val() for recent jQuery version --- js/jquery.polyglot.language.switcher.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/jquery.polyglot.language.switcher.js b/js/jquery.polyglot.language.switcher.js index c7d41a2..323151b 100644 --- a/js/jquery.polyglot.language.switcher.js +++ b/js/jquery.polyglot.language.switcher.js @@ -296,7 +296,7 @@ function toLiElement(option) { var id = $(option).attr("id"); - var value = $(option).attr("value"); + var value = $(option).val(); var text = $(option).text(); var liElement; if (isStaticWebSite) { @@ -390,4 +390,4 @@ }; -})(jQuery); \ No newline at end of file +})(jQuery);