|
Lines 26-31
Link Here
|
| 26 |
|
26 |
|
| 27 |
postCreate : function() { |
27 |
postCreate : function() { |
| 28 |
this.inherited(arguments); |
28 |
this.inherited(arguments); |
|
|
29 |
var _self = this; |
| 30 |
|
| 31 |
dojo.addClass(this.closeLink, "imageSprite"); |
| 32 |
dojo.addClass(this.closeLink, "core-sprite-close"); |
| 33 |
|
| 34 |
dojo.connect(this.closeLink, "onmouseover", this.closeLink, function() { |
| 35 |
_self.closeLink.style.cursor = "pointer"; |
| 36 |
}); |
| 37 |
dojo.connect(this.closeLink, "onmouseout", this.closeLink, function() { |
| 38 |
_self.closeLink.style.cursor = "default"; |
| 39 |
}); |
| 40 |
|
| 41 |
dojo.connect(this.closeLink, "onclick", function() {dojo.hitch(_self, _self.closeDialog)();}); |
| 29 |
}, |
42 |
}, |
| 30 |
|
43 |
|
| 31 |
setPendingAuthentication: function(services){ |
44 |
setPendingAuthentication: function(services){ |
|
Lines 138-146
Link Here
|
| 138 |
return function(){authService.logout().then(dojo.hitch(_self, function(){ |
151 |
return function(){authService.logout().then(dojo.hitch(_self, function(){ |
| 139 |
this.addUserItem(i, authService, this.authenticatedServices[i].label); |
152 |
this.addUserItem(i, authService, this.authenticatedServices[i].label); |
| 140 |
if(this.isSingleService()){ |
153 |
if(this.isSingleService()){ |
| 141 |
if(dijit.popup.hide) |
154 |
this.closeDialog(); |
| 142 |
dijit.popup.hide(this); //close doesn't work on FF |
|
|
| 143 |
dijit.popup.close(this); |
| 144 |
} |
155 |
} |
| 145 |
localStorage.removeItem(i); |
156 |
localStorage.removeItem(i); |
| 146 |
}));}; |
157 |
}));}; |
|
Lines 275-282
Link Here
|
| 275 |
img.src = null; // no server request |
286 |
img.src = null; // no server request |
| 276 |
return url.match(re)[1].toString(); |
287 |
return url.match(re)[1].toString(); |
| 277 |
}, |
288 |
}, |
| 278 |
_onBlur: function(){ |
289 |
closeDialog: function(){ |
| 279 |
this.inherited(arguments); |
|
|
| 280 |
if(dijit.popup.hide) |
290 |
if(dijit.popup.hide) |
| 281 |
dijit.popup.hide(this); //close doesn't work on FF |
291 |
dijit.popup.hide(this); //close doesn't work on FF |
| 282 |
dijit.popup.close(this); |
292 |
dijit.popup.close(this); |