You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by je...@apache.org on 2014/09/12 12:29:17 UTC

[03/28] git commit: [#7585] ticket:639 Small amends

[#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/je/42cc_4905
Commit: e8938e54f50dde7b919c1173c482c70aadd06529
Parents: ce6c4aa
Author: Igor Bondarenko <je...@gmail.com>
Authored: Mon Aug 25 14:31:27 2014 +0300
Committer: Dave Brondsema <db...@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 %}