mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-20 21:43:40 -07:00
fixed bug for highlighting not working on new document
This commit is contained in:
parent
cddb167638
commit
c8fad99f90
1 changed files with 4 additions and 0 deletions
|
@ -281,6 +281,10 @@ haste.prototype.lockDocument = function() {
|
|||
_this.$textarea.val('').hide();
|
||||
_this.$box.show().focus();
|
||||
_this.addLineNumbers(ret.lineCount);
|
||||
// Load Document Again
|
||||
var path = window.location.href;
|
||||
console.log(path);
|
||||
_this.loadDocument(path.split('#')[0].split('/').slice(-1)[0]);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue