Revision f46a13ff
b/gss/src/gr/ebs/gss/client/FilePropertiesDialog.java | ||
---|---|---|
120 | 120 |
* @param bodies |
121 | 121 |
*/ |
122 | 122 |
public FilePropertiesDialog(final Images images, final List<GroupResource> groups, List<FileResource> bodies) { |
123 |
|
|
124 |
// Enable IE selection for the dialog (must disable it upon closing it) |
|
125 |
GSS.enableIESelection(); |
|
126 |
|
|
123 | 127 |
// Set the dialog's caption. |
124 | 128 |
setText("File properties"); |
125 | 129 |
setAnimationEnabled(true); |
... | ... | |
192 | 196 |
|
193 | 197 |
public void onClick(Widget sender) { |
194 | 198 |
accept(); |
195 |
hide();
|
|
199 |
closeDialog();
|
|
196 | 200 |
} |
197 | 201 |
}); |
198 | 202 |
buttons.add(ok); |
... | ... | |
202 | 206 |
final Button cancel = new Button("Cancel", new ClickListener() { |
203 | 207 |
|
204 | 208 |
public void onClick(Widget sender) { |
205 |
hide();
|
|
209 |
closeDialog();
|
|
206 | 210 |
} |
207 | 211 |
}); |
208 | 212 |
buttons.add(cancel); |
... | ... | |
328 | 332 |
|
329 | 333 |
|
330 | 334 |
public void confirm() { |
331 |
FilePropertiesDialog.this.hide();
|
|
335 |
FilePropertiesDialog.this.closeDialog();
|
|
332 | 336 |
removeAllOldVersions(); |
333 | 337 |
} |
334 | 338 |
|
... | ... | |
400 | 404 |
case KeyboardListener.KEY_ENTER: |
401 | 405 |
accept(); |
402 | 406 |
case KeyboardListener.KEY_ESCAPE: |
403 |
hide();
|
|
407 |
closeDialog();
|
|
404 | 408 |
break; |
405 | 409 |
} |
406 | 410 |
|
... | ... | |
554 | 558 |
inner.selectTab(_tab); |
555 | 559 |
} |
556 | 560 |
|
561 |
/** |
|
562 |
* Enables IE selection prevention and hides the dialog |
|
563 |
* (we disable the prevention on creation of the dialog) |
|
564 |
*/ |
|
565 |
public void closeDialog() { |
|
566 |
GSS.preventIESelection(); |
|
567 |
hide(); |
|
568 |
} |
|
569 |
|
|
557 | 570 |
} |
b/gss/src/gr/ebs/gss/client/FolderPropertiesDialog.java | ||
---|---|---|
83 | 83 |
public FolderPropertiesDialog(Images images, boolean _create, final List<GroupResource> _groups) { |
84 | 84 |
setAnimationEnabled(true); |
85 | 85 |
|
86 |
// Enable IE selection for the dialog (must disable it upon closing it) |
|
87 |
GSS.enableIESelection(); |
|
88 |
|
|
86 | 89 |
create = _create; |
87 | 90 |
DnDTreeItem folderItem = (DnDTreeItem)GSS.get().getFolders().getCurrent(); |
88 | 91 |
folder = folderItem.getFolderResource(); |
... | ... | |
142 | 145 |
|
143 | 146 |
createOrUpdateFolder(); |
144 | 147 |
|
145 |
hide();
|
|
148 |
closeDialog();
|
|
146 | 149 |
} |
147 | 150 |
}); |
148 | 151 |
buttons.add(ok); |
... | ... | |
153 | 156 |
Button cancel = new Button("Cancel", new ClickListener() { |
154 | 157 |
|
155 | 158 |
public void onClick(Widget sender) { |
156 |
hide();
|
|
159 |
closeDialog();
|
|
157 | 160 |
} |
158 | 161 |
}); |
159 | 162 |
buttons.add(cancel); |
... | ... | |
164 | 167 |
Button add = new Button("Add Group", new ClickListener() { |
165 | 168 |
|
166 | 169 |
public void onClick(Widget sender) { |
167 |
// hide(); |
|
168 | 170 |
PermissionsAddDialog dlg = new PermissionsAddDialog(groups, permList, false); |
169 | 171 |
dlg.center(); |
170 | 172 |
} |
... | ... | |
175 | 177 |
Button addUser = new Button("Add User", new ClickListener() { |
176 | 178 |
|
177 | 179 |
public void onClick(Widget sender) { |
178 |
// hide(); |
|
179 | 180 |
PermissionsAddDialog dlg = new PermissionsAddDialog(groups, permList, true); |
180 | 181 |
dlg.center(); |
181 | 182 |
} |
... | ... | |
197 | 198 |
|
198 | 199 |
setWidget(outer); |
199 | 200 |
|
201 |
/*if (create) |
|
202 |
folderName.setFocus(true); |
|
203 |
else |
|
204 |
ok.setFocus(true);*/ |
|
200 | 205 |
} |
201 | 206 |
|
202 | 207 |
@Override |
... | ... | |
211 | 216 |
// enter or escape is pressed. |
212 | 217 |
switch (key) { |
213 | 218 |
case KeyboardListener.KEY_ENTER: |
214 |
hide();
|
|
219 |
closeDialog();
|
|
215 | 220 |
createOrUpdateFolder(); |
216 | 221 |
break; |
217 | 222 |
case KeyboardListener.KEY_ESCAPE: |
218 |
hide();
|
|
223 |
closeDialog();
|
|
219 | 224 |
break; |
220 | 225 |
} |
221 | 226 |
|
... | ... | |
223 | 228 |
} |
224 | 229 |
|
225 | 230 |
/** |
231 |
* Enables IE selection prevention and hides the dialog |
|
232 |
* (we disable the prevention on creation of the dialog) |
|
233 |
*/ |
|
234 |
public void closeDialog() { |
|
235 |
GSS.preventIESelection(); |
|
236 |
hide(); |
|
237 |
} |
|
238 |
|
|
239 |
/** |
|
226 | 240 |
* Generate an RPC request to create a new folder. |
227 | 241 |
* |
228 | 242 |
* @param userId the ID of the user whose namespace will be searched for |
Also available in: Unified diff