allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [08/15] git commit: [#6893] ticket:507 Rename variable to something more generic
Date Mon, 03 Feb 2014 22:53:34 GMT
[#6893] ticket:507 Rename variable to something more generic


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

Branch: refs/heads/cj/7085
Commit: 50fb9ef15678a3ff4d2ba63a552ad47904dec4b9
Parents: 208280f
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Mon Jan 27 12:11:09 2014 +0200
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Wed Jan 29 22:11:17 2014 +0000

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


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/50fb9ef1/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 9a20601..4a808d7 100644
--- a/Allura/allura/lib/widgets/resources/js/combobox.js
+++ b/Allura/allura/lib/widgets/resources/js/combobox.js
@@ -39,18 +39,18 @@
       function populateSelect(data) {
         select.children('option').remove();
         $('<option></option>').val('').appendTo(select);
-        var cur_user_in_data = false;
+        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);
           if (selected.val() === value) {
             option.attr('selected', 'selected');  // select initial value, if any
-            cur_user_in_data = true;
+            selected_option_present = true;
           }
           option.appendTo(select);
         }
-        if (!cur_user_in_data) {
+        if (!selected_option_present) {
           selected.attr('selected', 'selected');
           selected.appendTo(select);
         }


Mime
View raw message