mirror of
https://github.com/seejohnrun/haste-server.git
synced 2024-11-22 04:31:21 +00:00
Back button fix
This commit is contained in:
parent
8e46ee620f
commit
49bb449141
2 changed files with 1 additions and 8 deletions
|
@ -167,13 +167,6 @@ haste.prototype.loadDocument = function(key) {
|
|||
if (ret) {
|
||||
_this.$code.html(ret.value);
|
||||
_this.setTitle(ret.key);
|
||||
var file = '/' + ret.key;
|
||||
if (ret.language) {
|
||||
file += '.' + _this.lookupExtensionByType(ret.language);
|
||||
}
|
||||
if (window.location.path != file) {
|
||||
window.history.pushState(null, _this.appName + '-' + ret.key, file);
|
||||
}
|
||||
_this.fullKey();
|
||||
_this.$textarea.val('').hide();
|
||||
_this.$box.show().focus();
|
||||
|
|
2
static/application.min.js
vendored
2
static/application.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue