This commit is contained in:
Zixaphir 2014-01-15 17:10:46 -07:00
parent 30f4d0922b
commit 19c8ffe4d6
3 changed files with 3 additions and 7 deletions

View File

@ -12123,7 +12123,7 @@
if (subtitle = $('.boardSubtitle')) { if (subtitle = $('.boardSubtitle')) {
$.rm(subtitle); $.rm(subtitle);
} }
return $('.boardTitle').textContent = d.title = "" + board + " = " + title; return $('.boardTitle').textContent = d.title = "" + board + " - " + title;
}, },
navigate: function(e) { navigate: function(e) {
var boardID, load, pageNum, path, threadID, view; var boardID, load, pageNum, path, threadID, view;
@ -12204,7 +12204,6 @@
new Notice('warning', "Failed to load thread." + (req.status ? " " + req.status : '')); new Notice('warning', "Failed to load thread." + (req.status ? " " + req.status : ''));
return; return;
} }
Navigate.title();
try { try {
return Navigate.parse(JSON.parse(req.response).posts); return Navigate.parse(JSON.parse(req.response).posts);
} catch (_error) { } catch (_error) {

View File

@ -12112,7 +12112,7 @@
if (subtitle = $('.boardSubtitle')) { if (subtitle = $('.boardSubtitle')) {
$.rm(subtitle); $.rm(subtitle);
} }
return $('.boardTitle').textContent = d.title = "" + board + " = " + title; return $('.boardTitle').textContent = d.title = "" + board + " - " + title;
}, },
navigate: function(e) { navigate: function(e) {
var boardID, load, pageNum, path, threadID, view; var boardID, load, pageNum, path, threadID, view;
@ -12193,7 +12193,6 @@
new Notice('warning', "Failed to load thread." + (req.status ? " " + req.status : '')); new Notice('warning', "Failed to load thread." + (req.status ? " " + req.status : ''));
return; return;
} }
Navigate.title();
try { try {
return Navigate.parse(JSON.parse(req.response).posts); return Navigate.parse(JSON.parse(req.response).posts);
} catch (_error) { } catch (_error) {

View File

@ -170,7 +170,7 @@ Navigate =
updateTitle: ({board, title}) -> updateTitle: ({board, title}) ->
$.rm subtitle if subtitle = $ '.boardSubtitle' $.rm subtitle if subtitle = $ '.boardSubtitle'
$('.boardTitle').textContent = d.title = "#{board} = #{title}" $('.boardTitle').textContent = d.title = "#{board} - #{title}"
navigate: (e) -> navigate: (e) ->
return if @hostname isnt 'boards.4chan.org' or window.location.hostname is 'rs.4chan.org' or return if @hostname isnt 'boards.4chan.org' or window.location.hostname is 'rs.4chan.org' or
@ -240,8 +240,6 @@ Navigate =
new Notice 'warning', "Failed to load thread.#{if req.status then " #{req.status}" else ''}" new Notice 'warning', "Failed to load thread.#{if req.status then " #{req.status}" else ''}"
return return
Navigate.title()
try try
Navigate.parse JSON.parse(req.response).posts Navigate.parse JSON.parse(req.response).posts
catch err catch err