- LSformElement_mail & LSformElement_rss & LSformElement_xmpp :

-> Correction d'erreurs d'affichage
- LSformElement_mail.js & LSformElement_xmpp.js :
	-> Correction d'erreurs de comportement au clique sur les boutons
This commit is contained in:
Benjamin Renard 2008-08-04 10:45:42 +00:00
parent 764cf6c20a
commit 2e67cd7361
5 changed files with 5 additions and 5 deletions

View file

@ -80,7 +80,7 @@ class LSformElement_mail extends LSformElement {
*/ */
function getEmptyField() { function getEmptyField() {
$multiple = $this -> getMultipleData(); $multiple = $this -> getMultipleData();
return "<input type='text' name='".$this -> name."[]' id='LSform_".$this -> name."_".rand()."'><img src='templates/images/go.png' class='LSformElement_mail_btn btn' alt='"._('Envoyer un mail.')."' title='"._('Envoyer un mail.')."'/>".$multiple; return "<input type='text' name='".$this -> name."[]' id='LSform_".$this -> name."_".rand()."'><img src='templates/images/mail.png' class='LSformElement_mail_btn btn' alt='"._('Envoyer un mail.')."' title='"._('Envoyer un mail.')."'/>".$multiple;
} }
} }

View file

@ -80,7 +80,7 @@ class LSformElement_rss extends LSformElement {
*/ */
function getEmptyField() { function getEmptyField() {
$multiple = $this -> getMultipleData(); $multiple = $this -> getMultipleData();
return "<input type='text' name='".$this -> name."[]' id='LSform_".$this -> name."_".rand()."'><img src='templates/images/go.png' class='LSformElement_rss_btn btn' alt='"._('Afficher la file RSS.')."' title='"._('Afficher la file RSS.')."'/>".$multiple; return "<input type='text' name='".$this -> name."[]' id='LSform_".$this -> name."_".rand()."'><img src='templates/images/rss.png' class='LSformElement_rss_btn btn' alt='"._('Afficher la file RSS.')."' title='"._('Afficher la file RSS.')."'/>".$multiple;
} }
} }

View file

@ -80,7 +80,7 @@ class LSformElement_xmpp extends LSformElement {
*/ */
function getEmptyField() { function getEmptyField() {
$multiple = $this -> getMultipleData(); $multiple = $this -> getMultipleData();
return "<input type='text' name='".$this -> name."[]' id='LSform_".$this -> name."_".rand()."'><img src='templates/images/go.png' class='LSformElement_xmpp_btn btn' alt='"._('Dialoguer')."' title='"._('Dialoguer')."'/>".$multiple; return "<input type='text' name='".$this -> name."[]' id='LSform_".$this -> name."_".rand()."'><img src='templates/images/xmpp.png' class='LSformElement_xmpp_btn btn' alt='"._('Dialoguer')."' title='"._('Dialoguer')."'/>".$multiple;
} }
} }

View file

@ -24,7 +24,7 @@ var LSformElement_mail = new Class({
if (typeof(href)=="undefined") { if (typeof(href)=="undefined") {
href = 'mailto:'+btn.getParent().getFirst().value; href = 'mailto:'+btn.getParent().getFirst().value;
} }
if (href!="") { if ((href!="")&&(href!="mailto:")) {
location.href = href; location.href = href;
} }
} }

View file

@ -24,7 +24,7 @@ var LSformElement_xmpp = new Class({
if (typeof(href)=="undefined") { if (typeof(href)=="undefined") {
href = 'xmpp:'+btn.getParent().getFirst().value; href = 'xmpp:'+btn.getParent().getFirst().value;
} }
if (href!="") { if ((href!="")&&(href!="xmpp:")) {
location.href = href; location.href = href;
} }
} }