User story #893: Set correct link from FAS

This commit is contained in:
bison-paolo
2017-03-08 18:26:50 +01:00
parent faed608435
commit 599e57dd4f
3 changed files with 76 additions and 6 deletions
+14 -1
View File
@@ -93,7 +93,20 @@ function loadMessages(person_id, fas_person_id)
// ****
function MessagesNewMessage()
{
window.open('<?php echo APP_ROOT ?>index.ci.php/system/Messages/write/'+MessageSenderPersonID+'/'+MessagePersonID,'Message','');
var tree = parent.document.getElementById('student-tree');
if (tree.currentIndex == -1)
{
alert("Bitte markieren Sie zuerst eine Person");
}
else
{
var prestudentIdArray = getMultipleTreeCellText(tree, 'student-treecol-prestudent_id');
var action = '<?php echo APP_ROOT ?>index.ci.php/system/Messages/write/' + MessageSenderPersonID;
openWindowPostArray(action, 'prestudent_id', prestudentIdArray);
}
}
/**