allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [2/2] git commit: [#5649] ticket:298 Removed * in front of default values in bulk edit
Date Mon, 25 Mar 2013 21:45:56 GMT
[#5649] ticket:298 Removed * in front of default values in bulk edit


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

Branch: refs/heads/master
Commit: d2678d12d25cce02f958ed459f58b325abd45dc4
Parents: d242cae
Author: Aleksey 'LXj' Alekseyev <gotletter@gmail.com>
Authored: Mon Mar 25 12:18:17 2013 +0200
Committer: Cory Johns <johnsca@geek.net>
Committed: Mon Mar 25 21:33:12 2013 +0000

----------------------------------------------------------------------
 .../templates/tracker_widgets/mass_edit_form.html  |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/d2678d12/ForgeTracker/forgetracker/templates/tracker_widgets/mass_edit_form.html
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/templates/tracker_widgets/mass_edit_form.html b/ForgeTracker/forgetracker/templates/tracker_widgets/mass_edit_form.html
index 8386620..d7c298e 100644
--- a/ForgeTracker/forgetracker/templates/tracker_widgets/mass_edit_form.html
+++ b/ForgeTracker/forgetracker/templates/tracker_widgets/mass_edit_form.html
@@ -41,7 +41,11 @@
             <select name="{{field.name}}" class="wide">
               <option value="" selected="selected">no change</option>
               {% for option in field.options.split() %}
-                <option value="{{option}}">{{option}}</option>
+                {% if option.startswith('*') %}
+                  <option value="{{option[1:]}}">{{option[1:]}}</option>
+                {% else %}
+                  <option value="{{option}}">{{option}}</option>
+                {% endif %}
               {% endfor %}
             </select>
           {% elif field.type == 'milestone' %}


Mime
View raw message