diff options
author | Andrew Dolgov <[email protected]> | 2010-11-23 10:30:36 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-23 10:30:36 +0300 |
commit | 63855db147e6efeaa6516dc2b95598b03d1b3ad5 (patch) | |
tree | a3475c2b6eb7dd71fe44fc7d358c414abcdac805 /tt-rss.js | |
parent | 6ef0c9c3426275612db693cad5d2c90df24ca714 (diff) |
rework version checking
Diffstat (limited to 'tt-rss.js')
-rw-r--r-- | tt-rss.js | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -1107,3 +1107,24 @@ function scheduleFeedUpdate(id, is_cat) { exception_error("scheduleFeedUpdate", e); } } + +function newVersionDlg() { + try { + var query = "backend.php?op=dlg&id=newVersion"; + + if (dijit.byId("newVersionDlg")) + dijit.byId("newVersionDlg").destroyRecursive(); + + dialog = new dijit.Dialog({ + id: "newVersionDlg", + title: __("New version available!"), + style: "width: 600px", + href: query, + }); + + dialog.show(); + + } catch (e) { + exception_error("newVersionDlg", e); + } +} |