diff options
author | Andrew Dolgov <[email protected]> | 2018-12-03 15:46:54 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-12-03 15:46:54 +0300 |
commit | 4cb3a601a0fbeb0bf98c932bd5af8a3cffa8ab64 (patch) | |
tree | ed3dae8894591be12287b3cce3ff5b4cc6d1ce0e /classes/dlg.php | |
parent | cd0a39ea4cb7137aef5b225bdc4472d207a48e62 (diff) | |
parent | 98986ce066764158c045c3e23b69e98183b94236 (diff) |
Merge branch 'js-objects' into weblate-integration
Diffstat (limited to 'classes/dlg.php')
-rw-r--r-- | classes/dlg.php | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/classes/dlg.php b/classes/dlg.php index 9ac5cd12f..7ac18bb90 100644 --- a/classes/dlg.php +++ b/classes/dlg.php @@ -49,10 +49,10 @@ class Dlg extends Handler_Protected { print "<div align='center'>"; - print "<button dojoType=\"dijit.form.Button\" onclick=\"return opmlRegenKey()\">". + print "<button dojoType=\"dijit.form.Button\" onclick=\"return Helpers.OPML.changeKey()\">". __('Generate new URL')."</button> "; - print "<button dojoType=\"dijit.form.Button\" onclick=\"return closeInfoBox()\">". + print "<button dojoType=\"dijit.form.Button\" onclick=\"return CommonDialogs.closeInfoBox()\">". __('Close this window')."</button>"; print "</div>"; @@ -85,7 +85,7 @@ class Dlg extends Handler_Protected { print "<div align='center'>"; - print "<button onclick=\"return closeInfoBox()\">". + print "<button onclick=\"return CommonDialogs.closeInfoBox()\">". __('Close this window')."</button>"; print "</div>"; @@ -139,7 +139,7 @@ class Dlg extends Handler_Protected { $key_escaped = str_replace("'", "\\'", $key); - echo "<a href=\"javascript:viewfeed({feed:'$key_escaped'}) \" style=\"font-size: " . + echo "<a href=\"#\" onclick=\"Feeds.open({feed:'$key_escaped'}) \" style=\"font-size: " . $size . "px\" title=\"$value articles tagged with " . $key . '">' . $key . '</a> '; } @@ -150,7 +150,7 @@ class Dlg extends Handler_Protected { print "<div align='center'>"; print "<button dojoType=\"dijit.form.Button\" - onclick=\"return closeInfoBox()\">". + onclick=\"return CommonDialogs.closeInfoBox()\">". __('Close this window')."</button>"; print "</div>"; @@ -166,7 +166,9 @@ class Dlg extends Handler_Protected { $url_path = htmlspecialchars($this->params[2]) . "&key=" . $key; - print "<h2>".__("You can view this feed as RSS using the following URL:")."</h2>"; + $feed_title = Feeds::getFeedTitle($feed_id, $is_cat); + + print "<div>".T_sprintf("%s can be accessed via the following secret URL:", $feed_title)."</div>"; print "<div class=\"tagCloudContainer\">"; print "<a id='gen_feed_url' href='$url_path' target='_blank'>$url_path</a>"; @@ -174,10 +176,10 @@ class Dlg extends Handler_Protected { print "<div align='center'>"; - print "<button dojoType=\"dijit.form.Button\" onclick=\"return genUrlChangeKey('$feed_id', '$is_cat')\">". + print "<button dojoType=\"dijit.form.Button\" onclick=\"return CommonDialogs.genUrlChangeKey('$feed_id', '$is_cat')\">". __('Generate new URL')."</button> "; - print "<button dojoType=\"dijit.form.Button\" onclick=\"return closeInfoBox()\">". + print "<button dojoType=\"dijit.form.Button\" onclick=\"return CommonDialogs.closeInfoBox()\">". __('Close this window')."</button>"; print "</div>"; @@ -190,10 +192,10 @@ class Dlg extends Handler_Protected { print_warning(__("You are using default tt-rss password. Please change it in the Preferences (Personal data / Authentication).")); print "<div align='center'>"; - print "<button dojoType=\"dijit.form.Button\" onclick=\"gotoPreferences()\">". + print "<button dojoType=\"dijit.form.Button\" onclick=\"document.location.href = 'prefs.php'\">". __('Open Preferences')."</button> "; print "<button dojoType=\"dijit.form.Button\" - onclick=\"return closeInfoBox()\">". + onclick=\"return CommonDialogs.closeInfoBox()\">". __('Close this window')."</button>"; print "</div>"; } |