diff options
Diffstat (limited to 'modules-available/locationinfo/templates/location-info.html')
-rw-r--r-- | modules-available/locationinfo/templates/location-info.html | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/modules-available/locationinfo/templates/location-info.html b/modules-available/locationinfo/templates/location-info.html index 98786934..82b0ad15 100644 --- a/modules-available/locationinfo/templates/location-info.html +++ b/modules-available/locationinfo/templates/location-info.html @@ -78,9 +78,9 @@ </tr> {{#list}} - <tr id="row{{locationid}}" class="tablerow" onclick="{{#hasPcs}}slxOpenLocationInfo(this, {{locationid}}){{/hasPcs}}"> + <tr id="row{{locationid}}" class="tablerow"> - <td><div style="display:inline-block;width:{{depth}}em"></div>{{#hasPcs}}<a>{{/hasPcs}}{{locationname}}{{#hasPcs}}</a>{{/hasPcs}}</td> + <td><div style="display:inline-block;width:{{depth}}em"></div>{{locationname}}</td> <td align="center">[{{locationid}}]</td> <td align="center">{{#hasPcs}}{{pcState}} / {{total}}{{/hasPcs}}</td> @@ -134,32 +134,6 @@ function cbClick(cb, locID) { window.location.href = "?do=locationinfo&action=hide&id=" + locID + "&value=" + value; } -function slxOpenLocationInfo(e, locationId) { - if (lastPcSubTable !== false) { - lastPcSubTable.hide(); - $(lastPcSubTable).prev().removeClass('active slx-bold'); - } - - var existing = $('#subtable' + locationId); - if (existing.length > 0) { - if (existing.is(lastPcSubTable)) { - lastPcSubTable = false; - } else { - existing.show(); - $(e).closest('tr').addClass('active slx-bold'); - lastPcSubTable = existing; - } - return; - } - - var td = $('<td>').attr('colspan', '3').css('padding', '0px 0px 12px'); - var tr = $('<tr>').attr('id', 'subtable' + locationId); - tr.append(td); - $(e).closest('tr').addClass('active slx-bold').after(tr); - td.load("?do=locationinfo&action=pcsubtable&id=" + locationId); - lastPcSubTable = tr; -} - function loadTimeModal(locationId, locationName) { $('#myModalHeader').text("[" + locationId + "] " + locationName).css("font-weight","Bold"); |