dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #19155
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8249: minor fix
------------------------------------------------------------
revno: 8249
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2012-09-25 12:44:44 +0700
message:
minor fix
modified:
dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/sendMessage.vm
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/sendMessage.vm'
--- dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/sendMessage.vm 2012-09-25 04:11:15 +0000
+++ dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/sendMessage.vm 2012-09-25 05:44:44 +0000
@@ -8,11 +8,11 @@
function format(item)
{
- if(item.id.indexOf('u:') != -1)
+ if( item.id && item.id.indexOf('u:') != -1 )
{
return '<img src="../icons/glyphicons_003_user.png" style="width: 12px; height: 12px; padding-right: 5px;"/>' + item.text;
}
- else if (item.id.indexOf('ug:') != -1)
+ else if ( item.id && item.id.indexOf('ug:') != -1 )
{
return '<img src="../icons/glyphicons_043_group.png" style="width: 12px; height: 12px; padding-right: 5px;"/>' + item.text;
}