Fix spreadsheet creation

pull/1/head
yflory 4 years ago
parent 385edd6cf4
commit a10425299e

@ -198,7 +198,7 @@ define([
$fastNext = $(fastNext).hide(); $fastNext = $(fastNext).hide();
$next = $(_next).hide(); $next = $(_next).hide();
var pos = h('span.cp-history-timeline-pos'); var pos = h('span.cp-history-timeline-pos.fa.fa-caret-down');
var time = h('div.cp-history-timeline-time'); var time = h('div.cp-history-timeline-time');
var version = h('div.cp-history-timeline-version'); var version = h('div.cp-history-timeline-version');
$time = $(time); $time = $(time);

@ -30,11 +30,13 @@ define([
} }
var parsed = Hash.parsePadUrl(href); var parsed = Hash.parsePadUrl(href);
var opts = parsed.getOptions(); if (parsed && parsed.hashData) {
version = opts.versionHash; var opts = parsed.getOptions();
opts.versionHash = ""; version = opts.versionHash;
href = parsed.getUrl(opts); opts.versionHash = "";
hash = parsed.hashData.getHash(opts); href = parsed.getUrl(opts);
hash = parsed.hashData.getHash(opts);
}
document.getElementById('sbox-iframe').setAttribute('src', document.getElementById('sbox-iframe').setAttribute('src',
ApiConfig.httpSafeOrigin + window.location.pathname + 'inner.html?' + ApiConfig.httpSafeOrigin + window.location.pathname + 'inner.html?' +

Loading…
Cancel
Save