Back button fix
This commit is contained in:
parent
8e46ee620f
commit
49bb449141
|
@ -167,13 +167,6 @@ haste.prototype.loadDocument = function(key) {
|
||||||
if (ret) {
|
if (ret) {
|
||||||
_this.$code.html(ret.value);
|
_this.$code.html(ret.value);
|
||||||
_this.setTitle(ret.key);
|
_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.fullKey();
|
||||||
_this.$textarea.val('').hide();
|
_this.$textarea.val('').hide();
|
||||||
_this.$box.show().focus();
|
_this.$box.show().focus();
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue