Monotone-Parent: 8c8a0d34571f1ad215b38b68796cff75b4bb787e
Monotone-Revision: 217d9d9c614ee3505938f345452c5569bb650a58 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-05-23T20:05:00 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
ea8143fb80
commit
782cf503af
|
@ -1,3 +1,9 @@
|
||||||
|
2012-05-23 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||||
|
|
||||||
|
* UI/WebServerResources/generic.js
|
||||||
|
(clickEventWrapper.button_clickEventWrappe): don't invoke
|
||||||
|
"preventDefault" on elements that do not have a tagName of "A".
|
||||||
|
|
||||||
2012-05-18 Jean Raby <jraby@inverse.ca>
|
2012-05-18 Jean Raby <jraby@inverse.ca>
|
||||||
|
|
||||||
* SoObjects/Mailer/SOGoDraftObject.m (bodyPartForAttachmentWithName):
|
* SoObjects/Mailer/SOGoDraftObject.m (bodyPartForAttachmentWithName):
|
||||||
|
|
|
@ -47,9 +47,17 @@ var removeFolderRequestCount = 0;
|
||||||
// Email validation regexp
|
// Email validation regexp
|
||||||
var emailRE = /^([\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+\.)*[\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+@((((([a-z0-9]{1}[a-z0-9\-]{0,62}[a-z0-9]{1})|[a-z])\.)+[a-z]{2,6})|(\d{1,3}\.){3}\d{1,3}(\:\d{1,5})?)$/i;
|
var emailRE = /^([\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+\.)*[\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+@((((([a-z0-9]{1}[a-z0-9\-]{0,62}[a-z0-9]{1})|[a-z])\.)+[a-z]{2,6})|(\d{1,3}\.){3}\d{1,3}(\:\d{1,5})?)$/i;
|
||||||
|
|
||||||
|
|
||||||
|
/* This function enables the execution of a wrapper function just before the
|
||||||
|
user callback is executed. The wrapper in question executes "preventDefault"
|
||||||
|
to the event parameter if and only when "this" is a link. The goal of this
|
||||||
|
operation is to prevent links with attached even handlers to be followed,
|
||||||
|
including those with an href set to "#". */
|
||||||
function clickEventWrapper(functionRef) {
|
function clickEventWrapper(functionRef) {
|
||||||
function button_clickEventWrapper(event) {
|
function button_clickEventWrapper(event) {
|
||||||
preventDefault(event);
|
if (this.tagName == "A") {
|
||||||
|
preventDefault(event);
|
||||||
|
}
|
||||||
return functionRef.apply(this, [event]);
|
return functionRef.apply(this, [event]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue