Browse Source

Fix for data-url

pull/3287/head
Richard Mahn 8 years ago
parent
commit
23af384c53
  1. 4
      public/js/gogs.js

4
public/js/gogs.js

@ -746,8 +746,8 @@ function initEditor() {
} }
if(previewLink.length && apiCall && previewTabApis && previewTabApis.length && previewTabApis.indexOf(apiCall) >= 0) { if(previewLink.length && apiCall && previewTabApis && previewTabApis.length && previewTabApis.indexOf(apiCall) >= 0) {
dataUrl = previewLink.attr('data-url'); dataUrl = previewLink.data('url');
previewLink.attr('data-url', dataUrl.replace(/(.*)\/.*/i, '$1/' + mode)); previewLink.data('url', dataUrl.replace(/(.*)\/.*/i, '$1/' + mode));
previewLink.show(); previewLink.show();
} }
else { else {

Loading…
Cancel
Save