mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-16 22:04:54 +00:00
Monotone-Parent: 8c8a0d34571f1ad215b38b68796cff75b4bb787e
Monotone-Revision: 217d9d9c614ee3505938f345452c5569bb650a58 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-05-23T20:05:00 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -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>
|
||||
|
||||
* SoObjects/Mailer/SOGoDraftObject.m (bodyPartForAttachmentWithName):
|
||||
|
||||
@@ -47,9 +47,17 @@ var removeFolderRequestCount = 0;
|
||||
// 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;
|
||||
|
||||
|
||||
/* 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 button_clickEventWrapper(event) {
|
||||
preventDefault(event);
|
||||
if (this.tagName == "A") {
|
||||
preventDefault(event);
|
||||
}
|
||||
return functionRef.apply(this, [event]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user