Back button fix

raw_icon
John Crepezzi 14 years ago
parent 8e46ee620f
commit 49bb449141
  1. 7
      static/application.js
  2. 2
      static/application.min.js

@ -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
Loading…
Cancel
Save