Mercurial > hg > soundsoftware-site
comparison public/javascripts/application.js @ 508:851510f1b535 cannam
Merge from branch "redmine-1.2"
author | Chris Cannam |
---|---|
date | Thu, 14 Jul 2011 10:37:36 +0100 |
parents | 753f1380d6bc 0c939c159af4 |
children | 5e80956cc792 |
comparison
equal
deleted
inserted
replaced
506:1551c61843d2 | 508:851510f1b535 |
---|---|
307 | 307 |
308 window.onbeforeunload = this.unload.bind(this); | 308 window.onbeforeunload = this.unload.bind(this); |
309 }, | 309 }, |
310 | 310 |
311 unload: function(){ | 311 unload: function(){ |
312 this.observedElements.each(function(el) {el.blur();}) | |
312 if(this.changedForms) | 313 if(this.changedForms) |
313 return this.message; | 314 return this.message; |
314 }, | 315 }, |
315 | 316 |
316 setChanged: function(){ | 317 setChanged: function(){ |