added some status popups
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 4 Sep 2006 16:58:21 +0000 (16:58 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 4 Sep 2006 16:58:21 +0000 (16:58 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5921 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/default/js/myopac.js

index be79c65..fd9012e 100644 (file)
@@ -745,6 +745,7 @@ function myopacDrawNotes(r) {
        var tbody = $('myopac.notes.tbody');
        if(!notesTemplate)
                notesTemplate = tbody.removeChild($('myopac.notes.tr'));
        var tbody = $('myopac.notes.tbody');
        if(!notesTemplate)
                notesTemplate = tbody.removeChild($('myopac.notes.tr'));
+       removeChildren(tbody);
 
        iterate(notes, 
                function(note) {
 
        iterate(notes, 
                function(note) {
@@ -806,6 +807,7 @@ function myOPACUpdateUsername() {
                G.user.usrname(username);
                hideMe($('myopac_update_username_row'));
                userShown = false;
                G.user.usrname(username);
                hideMe($('myopac_update_username_row'));
                userShown = false;
+               alertId('myopac_username_success');
                myOPACShowSummary();
                return;
        }
                myOPACShowSummary();
                return;
        }
@@ -826,6 +828,7 @@ function myOPACUpdateEmail() {
                G.user.usrname(email);
                hideMe($('myopac_update_email_row'));
                userShown = false;
                G.user.usrname(email);
                hideMe($('myopac_update_email_row'));
                userShown = false;
+               alertId('myopac_email_success');
                myOPACShowSummary();
                return;
        }
                myOPACShowSummary();
                return;
        }
@@ -853,8 +856,8 @@ function myOPACUpdatePassword() {
        if(req.result()) {
                hideMe($('myopac_update_password_row'));
                userShown = false;
        if(req.result()) {
                hideMe($('myopac_update_password_row'));
                userShown = false;
+               alertId('myopac_password_success');
                myOPACShowSummary();
                myOPACShowSummary();
-               alert($('pw_update_successful').innerHTML);
                return;
        }
 
                return;
        }