Lines 1-5
Link Here
|
1 |
<%-- |
1 |
<%-- |
2 |
Copyright (c) 2000, 2004 IBM Corporation and others. |
2 |
Copyright (c) 2000, 2006 IBM Corporation and others. |
3 |
All rights reserved. This program and the accompanying materials |
3 |
All rights reserved. This program and the accompanying materials |
4 |
are made available under the terms of the Eclipse Public License v1.0 |
4 |
are made available under the terms of the Eclipse Public License v1.0 |
5 |
which accompanies this distribution, and is available at |
5 |
which accompanies this distribution, and is available at |
Lines 39-50
Link Here
|
39 |
} |
39 |
} |
40 |
|
40 |
|
41 |
BODY { |
41 |
BODY { |
|
|
42 |
font:<%=prefs.getViewFont()%>; |
42 |
background-color: <%=prefs.getToolbarBackground()%>; |
43 |
background-color: <%=prefs.getToolbarBackground()%>; |
43 |
color:WindowText; |
44 |
color:WindowText; |
44 |
} |
45 |
} |
45 |
|
46 |
|
46 |
TABLE { |
47 |
TABLE { |
47 |
width:auto; |
48 |
width:auto; |
|
|
49 |
margin:0px; |
50 |
padding:0px; |
48 |
} |
51 |
} |
49 |
|
52 |
|
50 |
TD, TR { |
53 |
TD, TR { |
Lines 58-76
Link Here
|
58 |
|
61 |
|
59 |
BUTTON { |
62 |
BUTTON { |
60 |
font:<%=prefs.getViewFont()%>; |
63 |
font:<%=prefs.getViewFont()%>; |
|
|
64 |
margin:5px; |
65 |
} |
66 |
|
67 |
BUTTON { |
68 |
font-size:1.0em; |
69 |
} |
70 |
|
71 |
FORM { |
72 |
margin: 0px; |
73 |
border: 0px; |
61 |
} |
74 |
} |
62 |
|
75 |
|
63 |
#workingSetContainer { |
76 |
#workingSetContainer { |
64 |
background:Window; |
|
|
65 |
color:WindowText; |
77 |
color:WindowText; |
66 |
border: 2px inset ThreeDHighlight; |
78 |
border: 2px inset ThreeDHighlight; |
67 |
margin:0px 5px; |
79 |
margin:0px 5px; |
68 |
padding:5px; |
80 |
padding:5px; |
69 |
overflow:auto; |
81 |
overflow:auto; |
|
|
82 |
height:140px; |
83 |
background:<%=prefs.getViewBackground()%>; |
84 |
} |
85 |
|
86 |
#buttonArea { |
87 |
height:4em; |
70 |
} |
88 |
} |
71 |
|
89 |
|
72 |
</style> |
90 |
</style> |
73 |
|
91 |
|
|
|
92 |
<script language="JavaScript" src="resize.js"></script> |
93 |
<script language="JavaScript" src="utils.js"></script> |
74 |
<script language="JavaScript" src="list.js"></script> |
94 |
<script language="JavaScript" src="list.js"></script> |
75 |
<script language="JavaScript"> |
95 |
<script language="JavaScript"> |
76 |
|
96 |
|
Lines 94-99
Link Here
|
94 |
sizeButtons(); |
114 |
sizeButtons(); |
95 |
<%}%> |
115 |
<%}%> |
96 |
enableButtons(); |
116 |
enableButtons(); |
|
|
117 |
sizeList(); |
97 |
document.getElementById("alldocs").focus(); |
118 |
document.getElementById("alldocs").focus(); |
98 |
} |
119 |
} |
99 |
|
120 |
|
Lines 170-175
Link Here
|
170 |
|
191 |
|
171 |
function removeWorkingSet() { |
192 |
function removeWorkingSet() { |
172 |
window.location.replace("workingSetManager.jsp?operation=remove&workingSet="+encodeURIComponent(getWorkingSet())); |
193 |
window.location.replace("workingSetManager.jsp?operation=remove&workingSet="+encodeURIComponent(getWorkingSet())); |
|
|
194 |
if (getWorkingSet()==window.opener.document.getElementById("scope").firstChild.nodeValue){ |
195 |
window.opener.document.getElementById("scope").firstChild.nodeValue= |
196 |
"<%=UrlUtil.JavaScriptEncode(ServletResources.getString("All", request))%>"; |
197 |
window.opener.document.forms["searchForm"].workingSet.value= |
198 |
"<%=UrlUtil.JavaScriptEncode(ServletResources.getString("All", request))%>"; |
199 |
} |
173 |
} |
200 |
} |
174 |
|
201 |
|
175 |
var workingSetDialog; |
202 |
var workingSetDialog; |
Lines 193-199
Link Here
|
193 |
// move the dialog just a bit higher than the middle |
220 |
// move the dialog just a bit higher than the middle |
194 |
if (t-50 > 0) t = t-50; |
221 |
if (t-50 > 0) t = t-50; |
195 |
window.location="javascript://needModal"; |
222 |
window.location="javascript://needModal"; |
196 |
workingSetDialog = window.open("workingSet.jsp?operation=add&workingSet="+encodeURIComponent(getWorkingSet()), "workingSetDialog", "resizeable=no,height="+h+",width="+w +",left="+l+",top="+t); |
223 |
workingSetDialog = window.open("workingSet.jsp?operation=add&workingSet="+encodeURIComponent(getWorkingSet()), "workingSetDialog", "resizable=yes,height="+h+",width="+w +",left="+l+",top="+t); |
197 |
workingSetDialog.focus(); |
224 |
workingSetDialog.focus(); |
198 |
} |
225 |
} |
199 |
|
226 |
|
Lines 216-222
Link Here
|
216 |
if (t-50 > 0) t = t-50; |
243 |
if (t-50 > 0) t = t-50; |
217 |
|
244 |
|
218 |
window.location="javascript://needModal"; |
245 |
window.location="javascript://needModal"; |
219 |
workingSetDialog = window.open("workingSet.jsp?operation=edit&workingSet="+encodeURIComponent(getWorkingSet()), "workingSetDialog", "resizeable=no,height="+h+",width="+w+",left="+l+",top="+t ); |
246 |
workingSetDialog = window.open("workingSet.jsp?operation=edit&workingSet="+encodeURIComponent(getWorkingSet()), "workingSetDialog", "resizable=no,height="+h+",width="+w+",left="+l+",top="+t ); |
220 |
workingSetDialog.focus(); |
247 |
workingSetDialog.focus(); |
221 |
} |
248 |
} |
222 |
|
249 |
|
Lines 229-250
Link Here
|
229 |
catch(e) {} |
256 |
catch(e) {} |
230 |
} |
257 |
} |
231 |
|
258 |
|
|
|
259 |
function sizeList() { |
260 |
resizeVertical("workingSetContainer", "filterTable", "buttonArea", 100, 30); |
261 |
} |
262 |
|
232 |
</script> |
263 |
</script> |
233 |
|
264 |
|
234 |
</head> |
265 |
</head> |
235 |
|
266 |
|
236 |
<body dir="<%=direction%>" onload="onloadHandler()" onunload="closeWorkingSetDialog()"> |
267 |
<body dir="<%=direction%>" onload="onloadHandler()" onunload="closeWorkingSetDialog()" onresize = "sizeList()"> |
237 |
<form onsubmit="selectWorkingSet();return false;"> |
268 |
<form onsubmit="selectWorkingSet();return false;"> |
238 |
<div style="overflow:auto;height:250px;width:100%;"> |
269 |
<table id="filterTable" cellspacing=0 cellpadding=0 border=0 align=center style="background:<%=prefs.getToolbarBackground()%>; font:<%=prefs.getToolbarFont()%>;margin-top:5px;width:100%;"> |
239 |
<table id="filterTable" cellspacing=0 cellpading=0 border=0 align=center style="background:<%=prefs.getToolbarBackground()%>; font:<%=prefs.getToolbarFont()%>;margin-top:5px;width:100%;"> |
|
|
240 |
<tr><td class="radio"> |
270 |
<tr><td class="radio"> |
241 |
<input id="alldocs" type="radio" name="workingSet" onclick="enableButtons()"><label for="alldocs" accesskey="<%=ServletResources.getAccessKey("selectAll", request)%>"><%=ServletResources.getLabel("selectAll", request)%></label> |
271 |
<input id="alldocs" type="radio" name="workingSet" onclick="enableButtons()"><label for="alldocs" accesskey="<%=ServletResources.getAccessKey("selectAll", request)%>"><%=ServletResources.getLabel("selectAll", request)%></label> |
242 |
</td></tr> |
272 |
</td></tr> |
243 |
<tr><td class="radio"> |
273 |
<tr><td class="radio"> |
244 |
<input id="selectws" type="radio" name="workingSet" onclick="enableButtons()"><label for="selectws" accesskey="<%=ServletResources.getAccessKey("selectWorkingSet", request)%>"><%=ServletResources.getLabel("selectWorkingSet", request)%>:</label> |
274 |
<input id="selectws" type="radio" name="workingSet" onclick="enableButtons()"><label for="selectws" accesskey="<%=ServletResources.getAccessKey("selectWorkingSet", request)%>"><%=ServletResources.getLabel("selectWorkingSet", request)%>:</label> |
245 |
</td></tr> |
275 |
</td></tr> |
246 |
<tr><td> |
276 |
</table> |
247 |
<div id="workingSetContainer" style="overflow:auto; height:140px; background:<%=prefs.getViewBackground()%>;"> |
277 |
<div id="workingSetContainer" > |
248 |
|
278 |
|
249 |
<table id='list' cellspacing='0' style="width:100%;"> |
279 |
<table id='list' cellspacing='0' style="width:100%;"> |
250 |
<% |
280 |
<% |
Lines 272-281
Link Here
|
272 |
%> |
302 |
%> |
273 |
|
303 |
|
274 |
</table> |
304 |
</table> |
275 |
</div> |
305 |
</div> |
276 |
</td></tr> |
306 |
|
277 |
<tr id="actionsTable" valign="bottom"><td> |
307 |
<div id="buttonArea"> |
278 |
<table cellspacing=10 cellpading=0 border=0 style="background:transparent;"> |
308 |
<table cellspacing=0 cellpadding=0 border=0 style="background:transparent;"> |
279 |
<tr> |
309 |
<tr> |
280 |
<td> |
310 |
<td> |
281 |
<button type="button" onclick="newWorkingSet()" id="new" accesskey="<%=ServletResources.getAccessKey("NewWorkingSetButton", request)%>"><%=ServletResources.getLabel("NewWorkingSetButton", request)%>...</button> |
311 |
<button type="button" onclick="newWorkingSet()" id="new" accesskey="<%=ServletResources.getAccessKey("NewWorkingSetButton", request)%>"><%=ServletResources.getLabel("NewWorkingSetButton", request)%>...</button> |
Lines 288-300
Link Here
|
288 |
</td> |
318 |
</td> |
289 |
</tr> |
319 |
</tr> |
290 |
</table> |
320 |
</table> |
291 |
</td></tr> |
321 |
<table align="<%=isRTL?"left":"right"%>" style="background:<%=prefs.getToolbarBackground()%>"> |
292 |
</table> |
322 |
<tr id="buttonsTable"><td align="<%=isRTL?"left":"right"%>"> |
293 |
</div> |
323 |
<table cellspacing=0 cellpadding=0 border=0 style="background:transparent;"> |
294 |
<div style="height:50px;"> |
|
|
295 |
<table valign="bottom" align="<%=isRTL?"left":"right"%>" style="background:<%=prefs.getToolbarBackground()%>"> |
296 |
<tr id="buttonsTable" valign="bottom"><td valign="bottom" align="<%=isRTL?"left":"right"%>"> |
297 |
<table cellspacing=10 cellpading=0 border=0 style="background:transparent;"> |
298 |
<tr> |
324 |
<tr> |
299 |
<td> |
325 |
<td> |
300 |
<button type="submit" id="ok"><%=ServletResources.getString("OK", request)%></button> |
326 |
<button type="submit" id="ok"><%=ServletResources.getString("OK", request)%></button> |