blob: 043952c75cc068afe4824f5d17d3755aeac747b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
function starredImportComplete(iframe) {
try {
if (!iframe.contentDocument.body.innerHTML) return false;
Element.show(iframe);
notify('');
if (dijit.byId('starredImportDlg'))
dijit.byId('starredImportDlg').destroyRecursive();
var content = iframe.contentDocument.body.innerHTML;
if (content) Element.hide(iframe);
dialog = new dijit.Dialog({
id: "starredImportDlg",
title: __("Google Reader Import"),
style: "width: 600px",
onCancel: function() {
Element.hide(iframe);
this.hide();
},
execute: function() {
Element.hide(iframe);
this.hide();
},
content: content});
dialog.show();
} catch (e) {
exception_error("starredImportComplete", e);
}
}
function starredImport() {
var starred_file = $("starred_file");
if (starred_file.value.length == 0) {
alert(__("Please choose a file first."));
return false;
} else {
notify_progress("Importing, please wait...", true);
Element.show("starred_upload_iframe");
return true;
}
}
|