Mercurial > hg > digilib-old
comparison webapp/src/main/webapp/jquery/jquery.digilib.annotator.js @ 1133:beb7e0f48242
nicer message.
author | robcast |
---|---|
date | Tue, 13 Nov 2012 19:44:19 +0100 |
parents | d47513632da5 |
children | ad1b3ed04a55 |
comparison
equal
deleted
inserted
replaced
1132:d47513632da5 | 1133:beb7e0f48242 |
---|---|
182 * auth is Auth plugin instance. | 182 * auth is Auth plugin instance. |
183 */ | 183 */ |
184 var setAnnotationUser = function (data, auth, user, password) { | 184 var setAnnotationUser = function (data, auth, user, password) { |
185 if (user == null) { | 185 if (user == null) { |
186 // user name entered in JS-prompt | 186 // user name entered in JS-prompt |
187 user = window.prompt("Please authenticate: User name", data.settings.annotationUser); | 187 user = window.prompt("Please authenticate (Cancel to log out): User name", data.settings.annotationUser); |
188 if (user != null && user != 'anonymous') { | 188 if (user != null && user != 'anonymous') { |
189 // password entered in JS-prompt | 189 // password entered in JS-prompt |
190 password = window.prompt("Please authenticate: Password", ''); | 190 password = window.prompt("Please authenticate: Password", ''); |
191 // set params for Auth plugin | 191 // set params for Auth plugin |
192 auth.options.requestData.password = password; | 192 auth.options.requestData.password = password; |