summaryrefslogtreecommitdiffstats
path: root/public/javascripts
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-02-10 00:36:21 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-02-10 00:36:21 +0000
commit2cfdb8306d0ec1dce9d969cb31dca2787510ee3e (patch)
tree54062a209e7a85eb13b09795eda62a835a2bdf11 /public/javascripts
parent30a9cf0f033396af544eb850054892c84ac435c7 (diff)
downloadredmine-2cfdb8306d0ec1dce9d969cb31dca2787510ee3e.tar.gz
redmine-2cfdb8306d0ec1dce9d969cb31dca2787510ee3e.zip
remove tailing white spaces from public/javascripts/application.js
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8831 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public/javascripts')
-rw-r--r--public/javascripts/application.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js
index 7eaada200..f0b493c39 100644
--- a/public/javascripts/application.js
+++ b/public/javascripts/application.js
@@ -1,5 +1,5 @@
-/* redMine - project management software
- Copyright (C) 2006-2008 Jean-Philippe Lang */
+/* Redmine - project management software
+ Copyright (C) 2006-2012 Jean-Philippe Lang */
function checkAll (id, checked) {
var els = Element.descendants(id);
@@ -426,7 +426,7 @@ function observeProjectModules() {
setVisible('project_trackers', c);
setVisible('project_issue_custom_fields', c);
};
-
+
Event.observe(window, 'load', f);
Event.observe('project_enabled_module_names_issue_tracking', 'change', f);
}
@@ -441,44 +441,44 @@ var WarnLeavingUnsaved = Class.create({
observedElements: false,
changedForms: false,
message: null,
-
+
initialize: function(message){
this.observedForms = $$('form');
this.observedElements = $$('textarea');
this.message = message;
-
+
this.observedElements.each(this.observeChange.bind(this));
this.observedForms.each(this.submitAction.bind(this));
-
+
window.onbeforeunload = this.unload.bind(this);
},
-
+
unload: function(){
this.observedElements.each(function(el) {el.blur();})
if(this.changedForms)
return this.message;
},
-
+
setChanged: function(){
this.changedForms = true;
},
-
+
setUnchanged: function(){
this.changedForms = false;
},
-
+
observeChange: function(element){
element.observe('change',this.setChanged.bindAsEventListener(this));
},
-
+
submitAction: function(element){
element.observe('submit',this.setUnchanged.bindAsEventListener(this));
}
});
-/*
+/*
* 1 - registers a callback which copies the csrf token into the
- * X-CSRF-Token header with each ajax request. Necessary to
+ * X-CSRF-Token header with each ajax request. Necessary to
* work with rails applications which have fixed
* CVE-2011-0447
* 2 - shows and hides ajax indicator