Loading TODO +1 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ cache headers for static assets tests test in other browsers and add note to README maximum size of a haste fix any annoying visual quirks # shared version only twitter posting with ^T Loading static/application.js +4 −2 Original line number Diff line number Diff line Loading @@ -74,7 +74,9 @@ haste.prototype.newDocument = function(hideHistory) { window.history.pushState(null, this.appName, '/'); } this.setTitle(); this.$textarea.val('').show().focus(); this.$textarea.show('fast', function() { this.focus(); }); } // Load a document and show it Loading Loading @@ -128,7 +130,7 @@ haste.prototype.lockDocument = function() { // Configure keyboard shortcuts for the textarea haste.prototype.configureShortcuts = function() { var _this = this; $('body').keyup(function(evt) { $('body').keydown(function(evt) { // ^L or ^S for lock if (evt.ctrlKey && (evt.keyCode === 76 || evt.keyCode === 83)) { if (_this.$textarea.val().replace(/^\s+|\s+$/g, '') !== '') { Loading static/index.html +0 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,6 @@ $(function() { // Set up var app = new haste('haste'); $('textarea').focus(); // Handle pops window.onpopstate = function(evt) { var path = evt.target.location.pathname; Loading Loading
TODO +1 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ cache headers for static assets tests test in other browsers and add note to README maximum size of a haste fix any annoying visual quirks # shared version only twitter posting with ^T Loading
static/application.js +4 −2 Original line number Diff line number Diff line Loading @@ -74,7 +74,9 @@ haste.prototype.newDocument = function(hideHistory) { window.history.pushState(null, this.appName, '/'); } this.setTitle(); this.$textarea.val('').show().focus(); this.$textarea.show('fast', function() { this.focus(); }); } // Load a document and show it Loading Loading @@ -128,7 +130,7 @@ haste.prototype.lockDocument = function() { // Configure keyboard shortcuts for the textarea haste.prototype.configureShortcuts = function() { var _this = this; $('body').keyup(function(evt) { $('body').keydown(function(evt) { // ^L or ^S for lock if (evt.ctrlKey && (evt.keyCode === 76 || evt.keyCode === 83)) { if (_this.$textarea.val().replace(/^\s+|\s+$/g, '') !== '') { Loading
static/index.html +0 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,6 @@ $(function() { // Set up var app = new haste('haste'); $('textarea').focus(); // Handle pops window.onpopstate = function(evt) { var path = evt.target.location.pathname; Loading