diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-01-16 12:43:10 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-01-16 12:43:10 +0100 |
commit | 1bd9e2f62a05c5c284089b4d48e886de878ee769 (patch) | |
tree | 3811eae15925655f6610ab1176abb1482d64ef38 /ishtar_common | |
parent | 3ea67319cd18b8101f318ce4e151ce249fcf0096 (diff) | |
download | Ishtar-1bd9e2f62a05c5c284089b4d48e886de878ee769.tar.bz2 Ishtar-1bd9e2f62a05c5c284089b4d48e886de878ee769.zip |
UI: fix next button
Diffstat (limited to 'ishtar_common')
-rw-r--r-- | ishtar_common/templates/blocks/DataTables.html | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ishtar_common/templates/blocks/DataTables.html b/ishtar_common/templates/blocks/DataTables.html index b96e24a49..d3e7312ac 100644 --- a/ishtar_common/templates/blocks/DataTables.html +++ b/ishtar_common/templates/blocks/DataTables.html @@ -9,8 +9,6 @@ <p><a href="#" onclick="open_window('{{url_new}}');">{{new_message}}</a></p> {% endif %} -<h4 class="text-center">{% trans "Search and select an item" %}</h4> - <div class="alert alert-info" role="alert" id="pinned_search_{{name}}"> <i class="fa fa-thumb-tack"></i> <strong>{% trans "Pinned search:" %}</strong> @@ -257,8 +255,7 @@ jQuery(document).ready(function(){ var has_current_id = false; ids = datatable_{{sname}}.column(0).data(); - // ids = mygrid.getDataIDs(); - for (idx in ids){ + for (idx=0 ; idx < ids.length; idx++){ if (has_current_id) return ids[idx]; if (ids[idx] == c_id) has_current_id = true; } @@ -269,7 +266,6 @@ jQuery(document).ready(function(){ var previous_id = 0; ids = datatable_{{sname}}.column(0).data(); - //ids = mygrid.getDataIDs(); for (idx in ids){ if (ids[idx] == c_id){ if (previous_id) return previous_id; |