Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 358571 | Differences between
and this patch

Collapse All | Expand All

(-)a/bundles/org.eclipse.orion.client.core/web/orion/widgets/LoginDialog.js (-5 / +15 lines)
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);
(-)a/bundles/org.eclipse.orion.client.core/web/orion/widgets/templates/LoginDialog.html (-9 / +19 lines)
Lines 1-16 Link Here
1
1
2
<div>
2
<div>
3
	<div class="dijitTooltipContainer" role="presentation" style="width: 300px; padding-left: 0; padding-right: 0; padding-top: 0.5em; padding-bottom: 0.45em">
3
	<div class="dijitTooltipContainer" role="presentation" style="width: 300px; padding-left: 0; padding-right: 0; padding-top: 0; padding-bottom: 0.45em">
4
		<div class="dijitTooltipContents dijitTooltipFocusNode" role="dialog"
4
		<div class="dijitTooltipContents dijitTooltipFocusNode" role="dialog"
5
			dojoattachpoint="containerNode" style="padding: 0">
5
			dojoattachpoint="containerNode" style="padding: 0">
6
			<h2 dojoAttachPoint="emptyListInfo" class="LoginWindowLeft">No authentication required.</h2>
6
			<table style="width: 100%;">
7
			<table dojoAttachPoint="authenticated" style="display: none; width: 100%;">
7
				<tr>
8
			 <tbody dojoAttachPoint="authenticatedList">
8
					<td style="text-align: left; vertical-align: top;">
9
			</tbody>
9
						<h2 dojoAttachPoint="emptyListInfo" class="LoginWindowLeft">No authentication required.</h2>
10
			
10
						<table dojoAttachPoint="authenticated" style="display: none; width: 100%;">
11
			<table dojoAttachPoint="otherUnauthenticated" style="display: none; width: 100%;">
11
							<tbody dojoAttachPoint="authenticatedList">
12
			 <tbody dojoAttachPoint="otherUnauthenticatedList">
12
							</tbody>
13
			</tbody>
13
						</table>
14
						<table dojoAttachPoint="otherUnauthenticated" style="display: none; width: 100%;">
15
							<tbody dojoAttachPoint="otherUnauthenticatedList">
16
							</tbody>
17
						</table>
18
					</td>
19
					<td style="text-align: right; vertical-align: top; padding-right: 2px; margin: 0">
20
						<span dojoAttachPoint="closeLink" role="button" title="Close"></span>
21
					</td>
22
				</tr>
23
			</table>
14
		</div>
24
		</div>
15
	</div>
25
	</div>
16
	<div class="dijitTooltipConnector" role="presentation"></div>
26
	<div class="dijitTooltipConnector" role="presentation"></div>

Return to bug 358571