BUG 9332 Case Notes Field SOLVED
- The maximum of characters in Case Notes was 150. - Was extended the maximum of characteres a 500.
This commit is contained in:
@@ -158,7 +158,7 @@ function openCaseNotesWindow(appUid1, modalSw, appTitle)
|
|||||||
height : 40,
|
height : 40,
|
||||||
growMin: 40,
|
growMin: 40,
|
||||||
growMax: 80,
|
growMax: 80,
|
||||||
maxLengthText : 150,
|
maxLengthText : 500,
|
||||||
allowBlank :true,
|
allowBlank :true,
|
||||||
selectOnFocus :true,
|
selectOnFocus :true,
|
||||||
enableKeyEvents: true,
|
enableKeyEvents: true,
|
||||||
@@ -172,7 +172,7 @@ function openCaseNotesWindow(appUid1, modalSw, appTitle)
|
|||||||
rowtbar: [
|
rowtbar: [
|
||||||
[
|
[
|
||||||
'->',
|
'->',
|
||||||
'<span id="countChar">150</span>',
|
'<span id="countChar">500</span>',
|
||||||
' ',
|
' ',
|
||||||
{
|
{
|
||||||
id: 'sendBtn',
|
id: 'sendBtn',
|
||||||
@@ -230,10 +230,10 @@ function updateTextCtr(body, event) {
|
|||||||
ctr = document.getElementById('countChar').innerHTML;
|
ctr = document.getElementById('countChar').innerHTML;
|
||||||
|
|
||||||
text = Ext.getCmp('caseNoteText').getValue();
|
text = Ext.getCmp('caseNoteText').getValue();
|
||||||
maxLength = 150;
|
maxLength = 500;
|
||||||
|
|
||||||
if (text.length > maxLength) {
|
if (text.length > maxLength) {
|
||||||
Ext.getCmp('caseNoteText').setValue(Ext.getCmp('caseNoteText').getValue().substr(0,150));
|
Ext.getCmp('caseNoteText').setValue(Ext.getCmp('caseNoteText').getValue().substr(0,500));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
document.getElementById('countChar').innerHTML = maxLength - text.length;
|
document.getElementById('countChar').innerHTML = maxLength - text.length;
|
||||||
@@ -267,7 +267,7 @@ function newNoteHandler()
|
|||||||
document.getElementById('countChar').style.display = 'block';
|
document.getElementById('countChar').style.display = 'block';
|
||||||
Ext.getCmp('caseNoteText').focus();
|
Ext.getCmp('caseNoteText').focus();
|
||||||
Ext.getCmp('caseNoteText').reset();
|
Ext.getCmp('caseNoteText').reset();
|
||||||
document.getElementById('countChar').innerHTML = '150';
|
document.getElementById('countChar').innerHTML = '500';
|
||||||
caseNotesWindow.doLayout();
|
caseNotesWindow.doLayout();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user