1
0
Fork 0
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:
John Crepezzi 2011-12-15 14:23:09 -05:00
parent 8e46ee620f
commit 49bb449141
2 changed files with 1 additions and 8 deletions

View file

@ -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();

File diff suppressed because one or more lines are too long