diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2012-12-14 15:46:45 +0100 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2012-12-14 15:46:45 +0100 |
| commit | 16c021e98667fe353e6b3a6cb0bbf3b8f2319f98 (patch) | |
| tree | 1eefa62ead19c51f861e9a1fcbc41e4bca7cb813 /phpBB/viewforum.php | |
| parent | 5919407a1d183412ce02f6ceee62435f6effd499 (diff) | |
| download | forums-16c021e98667fe353e6b3a6cb0bbf3b8f2319f98.tar forums-16c021e98667fe353e6b3a6cb0bbf3b8f2319f98.tar.gz forums-16c021e98667fe353e6b3a6cb0bbf3b8f2319f98.tar.bz2 forums-16c021e98667fe353e6b3a6cb0bbf3b8f2319f98.tar.xz forums-16c021e98667fe353e6b3a6cb0bbf3b8f2319f98.zip | |
[ticket/10954] Change behavior of marking topics/forums
It will now display a popup message for 3 seconds which will confirm the
taken action. The amount of DOM traversals have been significantly reduced
and jQuery.each is now used instead of for loops. Additionally, it is now
possible to click on the mark topics/forums read links without triggering
an AJAX error.
PHPBB3-10954
Diffstat (limited to 'phpBB/viewforum.php')
| -rw-r--r-- | phpBB/viewforum.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index d514cf2d61..5fed514a12 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -183,10 +183,13 @@ if ($mark_read == 'topics') if ($request->is_ajax()) { - // Tell the ajax script what language vars need to be replaced + // Tell the ajax script what language vars and URL need to be replaced $data = array( 'NO_UNREAD_POSTS' => $user->lang['NO_UNREAD_POSTS'], - 'UNREAD_POSTS' => $user->lang['UNREAD_POSTS'] + 'UNREAD_POSTS' => $user->lang['UNREAD_POSTS'], + 'U_MARK_TOPICS' => ($user->data['is_registered'] || $config['load_anon_lastread']) ? append_sid("{$phpbb_root_path}viewforum.$phpEx", 'hash=' . generate_link_hash('global') . "&f=$forum_id&mark=topics&mark_time=" . time()) : '', + 'MESSAGE_TITLE' => $user->lang['INFORMATION'], + 'MESSAGE_TEXT' => $user->lang['TOPICS_MARKED'] ); $json_response = new phpbb_json_response(); $json_response->send($data); |
