Merge pull request #1116 from marcoAntonioNina/BUG-10125

BUG 10205 Al adicionar una nueva nota a un caso, el numero... SOLVED
This commit is contained in:
julceslauhub
2012-12-19 08:10:11 -08:00
2 changed files with 9 additions and 4 deletions

View File

@@ -75,6 +75,10 @@ class AppProxy extends HttpProxyController
$appNotes = new AppNotes();
$response = $appNotes->getNotesList( $appUid, '', $httpData->start, $httpData->limit );
require_once ("classes/model/Content.php");
$content = new Content();
$response['array']['appTitle'] = $content->load('APP_TITLE', '', $appUid, SYS_LANG);
return $response['array'];
}

View File

@@ -29,7 +29,6 @@ function openCaseNotesWindow(appUid1, modalSw, appTitle, proUid, taskUid)
proUid = !proUid ? "": proUid;
taskUid = !taskUid ? "": taskUid;
title = appTitle;
var startRecord=0;
var loadSize=10;
@@ -57,16 +56,18 @@ function openCaseNotesWindow(appUid1, modalSw, appTitle, proUid, taskUid)
return false;
}
caseNotesWindow.show();
newNoteAreaActive = false;
newNoteHandler();
caseNotesWindow.setTitle(_('ID_CASES_NOTES') + ' (' + storeNotes.data.items.length + ')');
title = !appTitle ? storeNotes.reader.jsonData.appTitle : appTitle ;
if(storeNotes.getCount()<storeNotes.getTotalCount()){
Ext.getCmp('CASES_MORE_BUTTON').show();
}else{
Ext.getCmp('CASES_MORE_BUTTON').hide();
}
caseNotesWindow.show();
newNoteAreaActive = false;
newNoteHandler();
}
}
});