[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[3278] trunk/UI/users



Revision: 3278
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=3278&view=rev
Author:   einhverfr
Date:     2011-06-18 00:40:24 +0000 (Sat, 18 Jun 2011)

Log Message:
-----------
password changing doesn't reuire the http auth box to pop up if Javascript is enabled

Modified Paths:
--------------
    trunk/UI/users/preferences.html
    trunk/UI/users/preferences.js

Modified: trunk/UI/users/preferences.html
===================================================================
--- trunk/UI/users/preferences.html	2011-06-17 22:02:17 UTC (rev 3277)
+++ trunk/UI/users/preferences.html	2011-06-18 00:40:24 UTC (rev 3278)
@@ -1,8 +1,8 @@
-<?lsmb INCLUDE 'ui-header.html' include_script=['UI/users/preferences.js'] 
+<?lsmb INCLUDE 'ui-header.html' include_script=['UI/util.js', 'UI/users/preferences.js'] 
 ?> 
 <?lsmb PROCESS elements.html ?> 
 <body>
-<form method="post" name = 'prefs' action="<?lsmb script ?>">
+<form method="post" name = 'prefs' action="<?lsmb script ?>" onsubmit="return submit_form()">
 <?lsmb INCLUDE input element_data = {
                name = "username"
                type = "hidden"

Modified: trunk/UI/users/preferences.js
===================================================================
--- trunk/UI/users/preferences.js	2011-06-17 22:02:17 UTC (rev 3277)
+++ trunk/UI/users/preferences.js	2011-06-18 00:40:24 UTC (rev 3278)
@@ -1,10 +1,10 @@
 
 function submit_form() {
 	var http = get_http_request_object();
-	var login = document.pref.username.value;
-	var old_password = document.pref.old_password.value;
-	var new_password = document.pref.new_password.value;
-	var confirm_pass = document.pref.confirm_password.value;
+	var login = document.prefs.username.value;
+	var old_password = document.prefs.old_password.value;
+	var new_password = document.prefs.new_password.value;
+	var confirm_pass = document.prefs.confirm_password.value;
 	http.open("get", 'user.pl?action=change_password' +
                           '&old_password='+old_password+
                           '&new_password='+new_password+


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.