@@ -87,7 +87,6 @@ class Form
if ($perm)
{
$tmp=explode(':',$typeofdata);
- if (preg_match('/^(string|email|numeric)$/i',$tmp[0])) $tmp[0] = 'text';
$ret.= '';
$ret.= $langs->trans($text);
$ret.= '
'."\n";
@@ -237,8 +236,7 @@ class Form
if (preg_match('/^(string|email|numeric)/',$inputType))
{
$tmp=explode(':',$inputType);
- $inputType='text';
- $inputOption=$tmp[1];
+ $inputType=$tmp[0]; $inputOption=$tmp[1];
if (! empty($tmp[2])) $savemethod=$tmp[2];
}
if (preg_match('/^datepicker/',$inputType))
diff --git a/htdocs/core/js/editinplace.js b/htdocs/core/js/editinplace.js
index 32ef01985a9..8f91696a4cf 100644
--- a/htdocs/core/js/editinplace.js
+++ b/htdocs/core/js/editinplace.js
@@ -107,7 +107,7 @@ $(document).ready(function() {
$( '#val_' + $(this).attr('id') ).click();
});
- $('.editval_text').editable(urlSaveInPlace, {
+ $('.editval_string').editable(urlSaveInPlace, {
type : 'text',
id : 'field',
width : 300,
@@ -118,7 +118,7 @@ $(document).ready(function() {
indicator : indicatorInPlace,
submitdata : function(result, settings) {
var htmlname = $(this).attr('id').substr(4);
- return getParameters('text', htmlname);
+ return getParameters('string', htmlname);
},
callback : function(result, settings) {
var obj = $.parseJSON(result);
@@ -131,7 +131,7 @@ $(document).ready(function() {
}
}
});
- $('.editkey_text').hover(
+ $('.editkey_string').hover(
function () {
$( '#val_' + $(this).attr('id') ).addClass("editval_hover");
},
@@ -139,7 +139,7 @@ $(document).ready(function() {
$( '#val_' + $(this).attr('id') ).removeClass("editval_hover");
}
);
- $('.editkey_text').click(function() {
+ $('.editkey_string').click(function() {
$( '#val_' + $(this).attr('id') ).click();
});
diff --git a/htdocs/theme/auguria/style.css.php b/htdocs/theme/auguria/style.css.php
index 246418765ba..8691787cc49 100644
--- a/htdocs/theme/auguria/style.css.php
+++ b/htdocs/theme/auguria/style.css.php
@@ -1652,7 +1652,7 @@ table.cal_event td { border: 0px; padding-: 0px; padding-
/* jQuery - jeditable */
/* ============================================================================== */
-.editkey_textarea, .editkey_ckeditor, .editkey_text, .editkey_numeric, .editkey_select {
+.editkey_textarea, .editkey_ckeditor, .editkey_string, .editkey_email, .editkey_numeric, .editkey_select {
background: url() right top no-repeat;
cursor: pointer;
}
@@ -1662,7 +1662,7 @@ table.cal_event td { border: 0px; padding-: 0px; padding-
cursor: pointer;
}
-.editval_textarea:hover, .editval_ckeditor:hover, .editval_text:hover, .editval_numeric:hover, .editval_select:hover, .editval_datepicker:hover {
+.editval_textarea:hover, .editval_ckeditor:hover, .editval_string:hover, .editval_email:hover, .editval_numeric:hover, .editval_select:hover, .editval_datepicker:hover {
background: white;
cursor: pointer;
}
diff --git a/htdocs/theme/bureau2crea/style.css.php b/htdocs/theme/bureau2crea/style.css.php
index be308f8e78b..f67bb97d284 100644
--- a/htdocs/theme/bureau2crea/style.css.php
+++ b/htdocs/theme/bureau2crea/style.css.php
@@ -1844,7 +1844,7 @@ table.cal_event td { border: 0px; padding-: 0px; padding-
/* jQuery - jeditable */
/* ============================================================================== */
-.editkey_textarea, .editkey_ckeditor, .editkey_text, .editkey_numeric, .editkey_select {
+.editkey_textarea, .editkey_ckeditor, .editkey_string, .editkey_email, .editkey_numeric, .editkey_select {
background: url() right top no-repeat;
cursor: pointer;
}
@@ -1854,7 +1854,7 @@ table.cal_event td { border: 0px; padding-: 0px; padding-
cursor: pointer;
}
-.editval_textarea:hover, .editval_ckeditor:hover, .editval_text:hover, .editval_numeric:hover, .editval_select:hover, .editval_datepicker:hover {
+.editval_textarea:hover, .editval_ckeditor:hover, .editval_string:hover, .editval_email:hover, .editval_numeric:hover, .editval_select:hover, .editval_datepicker:hover {
background: white;
cursor: pointer;
}
diff --git a/htdocs/theme/cameleo/style.css.php b/htdocs/theme/cameleo/style.css.php
index 98c0d473af2..4452da5ba02 100644
--- a/htdocs/theme/cameleo/style.css.php
+++ b/htdocs/theme/cameleo/style.css.php
@@ -1791,7 +1791,7 @@ table.cal_event td { border: 0px; padding-: 0px; padding-
/* jQuery - jeditable */
/* ============================================================================== */
-.editkey_textarea, .editkey_ckeditor, .editkey_text, .editkey_numeric, .editkey_select {
+.editkey_textarea, .editkey_ckeditor, .editkey_string, .editkey_email, .editkey_numeric, .editkey_select {
background: url() right top no-repeat;
cursor: pointer;
}
@@ -1801,7 +1801,7 @@ table.cal_event td { border: 0px; padding-: 0px; padding-
cursor: pointer;
}
-.editval_textarea:hover, .editval_ckeditor:hover, .editval_text:hover, .editval_numeric:hover, .editval_select:hover, .editval_datepicker:hover {
+.editval_textarea:hover, .editval_ckeditor:hover, .editval_string:hover, .editval_email:hover, .editval_numeric:hover, .editval_select:hover, .editval_datepicker:hover {
background: white;
cursor: pointer;
}
diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php
index aa38c527c0a..d6f6a06e630 100644
--- a/htdocs/theme/eldy/style.css.php
+++ b/htdocs/theme/eldy/style.css.php
@@ -1,8 +1,8 @@
- * Copyright (C) 2006 Rodolphe Quiedeville
- * Copyright (C) 2007-2011 Regis Houssin
- * Copyright (C) 2011 Philippe Grand
+/* Copyright (C) 2004-2012 Laurent Destailleur
+ * Copyright (C) 2006 Rodolphe Quiedeville
+ * Copyright (C) 2007-2012 Regis Houssin
+ * Copyright (C) 2011 Philippe Grand
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1959,7 +1959,7 @@ table.cal_event td { border: 0px; padding-: 0px; padding-
/* jQuery - jeditable */
/* ============================================================================== */
-.editkey_textarea, .editkey_ckeditor, .editkey_text, .editkey_numeric, .editkey_select {
+.editkey_textarea, .editkey_ckeditor, .editkey_string, .editkey_email, .editkey_numeric, .editkey_select {
background: url() right top no-repeat;
cursor: pointer;
}
@@ -1969,7 +1969,7 @@ table.cal_event td { border: 0px; padding-: 0px; padding-
cursor: pointer;
}
-.editval_textarea:hover, .editval_ckeditor:hover, .editval_text:hover, .editval_numeric:hover, .editval_select:hover, .editval_datepicker:hover {
+.editval_textarea:hover, .editval_ckeditor:hover, .editval_string:hover, .editval_email:hover, .editval_numeric:hover, .editval_select:hover, .editval_datepicker:hover {
background: white;
cursor: pointer;
}