From 63855db147e6efeaa6516dc2b95598b03d1b3ad5 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 23 Nov 2010 10:30:36 +0300 Subject: rework version checking --- tt-rss.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'tt-rss.js') diff --git a/tt-rss.js b/tt-rss.js index 46ea5a4bb..d88554669 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -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); + } +} -- cgit v1.2.3