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