[Vtigercrm-commits] [vtiger-commits] r9803 - /vtigercrm/branches/5.0.3/include/js/dtlviewajax.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Nov 8 06:39:04 EST 2006
Author: richie
Date: Wed Nov 8 04:39:01 2006
New Revision: 9803
Log:
unable to add tag could in IE - fixed
Modified:
vtigercrm/branches/5.0.3/include/js/dtlviewajax.js
Modified: vtigercrm/branches/5.0.3/include/js/dtlviewajax.js
==============================================================================
--- vtigercrm/branches/5.0.3/include/js/dtlviewajax.js (original)
+++ vtigercrm/branches/5.0.3/include/js/dtlviewajax.js Wed Nov 8 04:39:01 2006
@@ -316,7 +316,7 @@
{
/* Wordwrap a long list of multi-select combo box items at the
* item separator string */
- const DETAILVIEW_WORDWRAP_WIDTH = "70"; // must match value in DetailViewUI.tpl.
+ var DETAILVIEW_WORDWRAP_WIDTH = "70"; // must match value in DetailViewUI.tpl.
var lineLength = 0;
for(var i=0; i < r.length; i++) {
@@ -339,11 +339,9 @@
showHide(dtlView,editArea); //show,hide
itsonview=false;
}
-
-function SaveTag(txtBox,crmId,module)
-{
- var tagValue = document.getElementById(txtBox).value;
- document.getElementById(txtBox).value ='';
+function SaveTag(tagfield,crmId,module)
+{
+ var tagValue = $(tagfield).value;
$("vtbusy_info").style.display="inline";
new Ajax.Request(
'index.php',
@@ -353,6 +351,7 @@
onComplete: function(response) {
getObj('tagfields').innerHTML = response.responseText;
$("vtbusy_info").style.display="none";
+ $(tagfield).value = '';
}
}
);
More information about the vtigercrm-commits
mailing list