mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-21 01:13:08 -07:00
Update source
This commit is contained in:
parent
b0642ef52e
commit
805d9cf0c2
2 changed files with 7 additions and 1 deletions
|
@ -250,6 +250,12 @@ haste.prototype.loadDocument = function(key) {
|
|||
code.innerHTML = lines[i];
|
||||
let pre = document.getElementById("box");
|
||||
pre.appendChild(code);
|
||||
|
||||
code.onclick = function() {
|
||||
var file = '/' + ret.key + "#" + (i + 1).toString();
|
||||
window.history.pushState(null, _this.appName + '-' + ret.key, file);
|
||||
highlightNew(code);
|
||||
}
|
||||
}
|
||||
|
||||
_this.setTitle(ret.key);
|
||||
|
|
2
static/application.min.js
vendored
2
static/application.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue