You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2014/02/03 23:53:34 UTC

[08/15] git commit: [#6893] ticket:507 Rename variable to something more generic

[#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 <je...@gmail.com>
Authored: Mon Jan 27 12:11:09 2014 +0200
Committer: Cory Johns <cj...@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);
         }