[Vtigercrm-commits] [vtiger development] #4617: Invalid alert message in Notes CreateView page
vtiger development
vtiger-tickets at trac.vtiger.com
Mon Dec 3 05:29:50 EST 2007
#4617: Invalid alert message in Notes CreateView page
------------------------+---------------------------------------------------
Reporter: mangai | Owner: allen
Type: defect | Status: new
Priority: major | Milestone: 5.0.4
Component: vtigercrm | Version: 5.0.4
Resolution: | Keywords:
------------------------+---------------------------------------------------
Comment (by prasad):
Sorry for a small mistake in the above fix:
The following lines (in the above fix):
{{{
{literal}
if($("notecontent")) {
oFCKeditor = new FCKeditor( "notecontent" ) ;
}
}}}
Should be replaced with the following:
{{{
{literal}
function vt_textarea_exist(idorname) {
var textarea = document.getElementById(idorname);
var textareas = document.getElementsByName( idorname ) ;
var i = 0;
while ( textarea || i == 0 ) {
if ( textarea && textarea.tagName == 'TEXTAREA' )
break ;
textarea = textareas[i++] ;
}
return (textarea != null);
}
if(vt_textarea_exist("notecontent")) {
oFCKeditor = new FCKeditor( "notecontent" ) ;
}
}}}
It is good to have vt_textarea_exist function in include/js/general.js
Regards,
Prasad
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/4617#comment:3>
vtiger development <http://trac.vtiger.com/>
vtigerCRM
More information about the vtigercrm-commits
mailing list