dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #36721
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 18784: ER table classes.
Merge authors:
Jan Henrik Øverland (janhenrik-overland)
------------------------------------------------------------
revno: 18784 [merge]
committer: Jan Henrik Overland <janhenrik.overland@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2015-03-31 16:37:59 +0200
message:
ER table classes.
modified:
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-reports/scripts/core.js
--
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-apps/src/main/webapp/dhis-web-event-reports/scripts/core.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-reports/scripts/core.js 2015-03-31 10:21:39 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-reports/scripts/core.js 2015-03-31 14:37:12 +0000
@@ -3198,15 +3198,15 @@
optionNames = xResponse.metaData.optionNames,
pager = xResponse.metaData.pager,
count = pager.page * pager.pageSize - pager.pageSize
- tableCls = 'pivot',
+ cls = 'pivot',
html = '';
xResponse.sortableIdObjects = [];
- tableCls += layout.displayDensity ? ' ' + layout.displayDensity : '';
- tableCls += layout.fontSize ? ' ' + layout.fontSize : '';
+ cls += layout.displayDensity && layout.displayDensity !== 'normal' ? ' displaydensity-' + layout.displayDensity : '';
+ cls += layout.fontSize && layout.fontSize !== 'normal' ? ' fontsize-' + layout.fontSize : '';
- html += '<table class="' + tableCls + '"><tr>';
+ html += '<table class="' + cls + '"><tr>';
html += '<td class="pivot-dim pivot-dim-subtotal">' + '#' + '</td>';
// get header indexes