allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [5/6] git commit: [#7585] ticket:639 Small amends
Date Tue, 26 Aug 2014 20:20:10 GMT
[#7585] ticket:639 Small amends


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

Branch: refs/heads/master
Commit: e8938e54f50dde7b919c1173c482c70aadd06529
Parents: ce6c4aa
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Mon Aug 25 14:31:27 2014 +0300
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Tue Aug 26 19:24:58 2014 +0000

----------------------------------------------------------------------
 Allura/allura/templates/user_prefs.html | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/e8938e54/Allura/allura/templates/user_prefs.html
----------------------------------------------------------------------
diff --git a/Allura/allura/templates/user_prefs.html b/Allura/allura/templates/user_prefs.html
index b4dcc85..883dcd9 100644
--- a/Allura/allura/templates/user_prefs.html
+++ b/Allura/allura/templates/user_prefs.html
@@ -113,12 +113,9 @@
             </tr>
           </table>
           <div class="grid-22">
-            <p></p>
-            <input type="hidden" name="password">
-          </div>
-          <div class="grid-22">
             {{lib.submit_button('Save', name='addr-save')}}
           </div>
+          {{lib.hidden_field('password', '')}}
           {{lib.csrf_token()}}
         </fieldset>
       </form>
@@ -235,7 +232,7 @@
           if ($("input[name='password']").val() == ''){
             e.preventDefault();
           }
-          if ($("input[name='new_addr.addr']").val().length != 0){
+          if ($(this).attr('name') == 'addr-save' || $("input[name='new_addr.addr']").val().length
!= 0) {
             launch();
           }
         });
@@ -251,4 +248,4 @@
         });
       });
   </script>
- {% endblock %}
\ No newline at end of file
+ {% endblock %}


Mime
View raw message