~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/media/settings/settings.js

  • Committer: mattgiuca
  • Date: 2008-02-28 07:09:49 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:605
settings.js: Updates the user's nickname in the top bar immediately, to avoid
    suspicion that the nickname hasn't been updated.
dispatch/html: To facilitate this, made a <span> around the user's nick.

Show diffs side-by-side

added added

removed removed

Lines of Context:
253
253
            set_result("Successfully updated details.");
254
254
            user_data.nick = nickval;
255
255
            user_data.email = emailval;
 
256
            /* Now a little hack - update the user's nick display
 
257
             * in the heading bar, so they are sure it has been changed.
 
258
             */
 
259
            var usernick = document.getElementById("usernick");
 
260
            dom_removechildren(usernick);
 
261
            usernick.appendChild(document.createTextNode(nickval));
256
262
        }
257
263
        else
258
264
        {