allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [2/6] git commit: [#7213] ticket:564 Fixed combobox widget for IE11
Date Thu, 27 Mar 2014 21:41:26 GMT
[#7213] ticket:564 Fixed combobox widget for IE11


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/e2780d6e
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/e2780d6e
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/e2780d6e

Branch: refs/heads/master
Commit: e2780d6e007c41cdbb177d3f34d1b6f7eed7a697
Parents: 3d7a8b5
Author: Ferens Dmitriy <ferensdima@gmail.com>
Authored: Wed Mar 12 17:39:06 2014 +0200
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Thu Mar 27 21:29:44 2014 +0000

----------------------------------------------------------------------
 Allura/allura/lib/widgets/resources/js/combobox.js | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/e2780d6e/Allura/allura/lib/widgets/resources/js/combobox.js
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/widgets/resources/js/combobox.js b/Allura/allura/lib/widgets/resources/js/combobox.js
index 4a808d7..60e1b9a 100644
--- a/Allura/allura/lib/widgets/resources/js/combobox.js
+++ b/Allura/allura/lib/widgets/resources/js/combobox.js
@@ -42,8 +42,8 @@
         var selected_option_present = false;
         for (var i = 0; i < data.options.length; i++) {
           var label = data.options[i].label,
-              value = data.options[i].value;
-          var option = $('<option>' + label + '</option>').val(value);
+              value = data.options[i].value;         
+          var option = $('<option>').text(label).val(value);
           if (selected.val() === value) {
             option.attr('selected', 'selected');  // select initial value, if any
             selected_option_present = true;
@@ -149,7 +149,8 @@
 
       input.click(openDropdown);
 
-      $('<span>▼</span>')
+      $('<span>')
+        .text('▼')
         .attr('tabIndex', -1)
         .attr('title', 'Show all options')
         .appendTo(wrapper)


Mime
View raw message