Skip to content

Commit

Permalink
BK-1838 Unwanted redirections on history page
Browse files Browse the repository at this point in the history
  • Loading branch information
aerkalov committed Dec 21, 2015
1 parent 9d586e4 commit f096729
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/booktype/apps/edit/static/edit/js/booktype/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@

chapterHistory: function (chapter) {
renderHeader();
$('#content').load(win.booktype.editor.historyURL + chapter);
$('#content').load(win.booktype.editor.historyURL + chapter + '/');
},

viewRevision: function (chapter, revid) {
renderHeader();
$('#content').load(win.booktype.editor.historyURL + chapter + '/rev/' + revid);
$('#content').load(win.booktype.editor.historyURL + chapter + '/rev/' + revid + '/');
},

showPage: function (pageid) {
Expand Down Expand Up @@ -355,7 +355,7 @@
var rev2 = $('input[name="rev2"]:checked').val();

$(target).modal({
'remote': remote + '/' + rev1 + '/' + rev2
'remote': remote + '/' + rev1 + '/' + rev2 + '/'
});
});

Expand All @@ -364,7 +364,7 @@
rev1 = $('input[name="rev1"]:checked').val(),
rev2 = $('input[name="rev2"]:checked').val();

var url = remote + '/' + rev1 + '/' + rev2;
var url = remote + '/' + rev1 + '/' + rev2 + '/';
var win = window.open(url, '_blank');
win.focus();
});
Expand Down

0 comments on commit f096729

Please sign in to comment.