diff options
author | Jannik Schönartz | 2016-11-26 17:19:35 +0100 |
---|---|---|
committer | Jannik Schönartz | 2016-11-26 17:19:35 +0100 |
commit | 6870e95257138780edd0c133c08dd2ef85d9472a (patch) | |
tree | 8108c39d80b961eb09cddeecd3ce5227d4056608 /modules-available/locationinfo/templates | |
parent | Settings added. All settings can be configured now in the slx-admin panel. It... (diff) | |
download | slx-admin-6870e95257138780edd0c133c08dd2ef85d9472a.tar.gz slx-admin-6870e95257138780edd0c133c08dd2ef85d9472a.tar.xz slx-admin-6870e95257138780edd0c133c08dd2ef85d9472a.zip |
The Checkboxes in the locationinfo are now working recursively with parents/childs
Diffstat (limited to 'modules-available/locationinfo/templates')
-rw-r--r-- | modules-available/locationinfo/templates/location-info.html | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/modules-available/locationinfo/templates/location-info.html b/modules-available/locationinfo/templates/location-info.html index b0165eb4..91a274be 100644 --- a/modules-available/locationinfo/templates/location-info.html +++ b/modules-available/locationinfo/templates/location-info.html @@ -13,7 +13,7 @@ </tr> {{#list}} - <tr class="tablerow" onclick="{{#hasPcs}}slxOpenLocationInfo(this, {{locationid}}){{/hasPcs}}"> + <tr id="row{{locationid}}" class="tablerow" onclick="{{#hasPcs}}slxOpenLocationInfo(this, {{locationid}}){{/hasPcs}}"> <td><div style="display:inline-block;width:{{depth}}em"></div>{{#hasPcs}}<a>{{/hasPcs}}{{locationname}}</td> <td align="center">[{{locationid}}]</td> @@ -21,8 +21,8 @@ <td id={{locationid}} onclick="event.cancelBubble = true;" align="center"></td> <script> - var cbh = document.getElementById('{{locationid}}'); - var cb = document.createElement('input'); + var cbh = document.getElementById('{{locationid}}'); + var cb = document.createElement('input'); cb.type = 'checkbox'; cbh.appendChild(cb); @@ -56,7 +56,6 @@ </div> <script type="text/javascript"> - var lastPcSubTable = false; function cbClick(cb, locID) { @@ -101,7 +100,6 @@ function loadTimeModal(locationId, locationName) { $('#myModal').modal('show'); $('#myModalBody').load("?do=locationinfo&action=timetable&id=" + locationId); - } function loadConfigModal(locationId, locationName) { @@ -109,7 +107,6 @@ function loadConfigModal(locationId, locationName) { $('#myModal').modal('show'); $('#myModalBody').load("?do=locationinfo&action=config&id=" + locationId); - } </script> |