summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/blocks/DataTables.html
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/templates/blocks/DataTables.html')
-rw-r--r--ishtar_common/templates/blocks/DataTables.html49
1 files changed, 0 insertions, 49 deletions
diff --git a/ishtar_common/templates/blocks/DataTables.html b/ishtar_common/templates/blocks/DataTables.html
index 309bb0b09..8af5f1a7b 100644
--- a/ishtar_common/templates/blocks/DataTables.html
+++ b/ishtar_common/templates/blocks/DataTables.html
@@ -10,12 +10,6 @@
<p><a href="#" onclick="open_window('{{url_new}}');">{{new_message}}</a></p>
{% endif %}
-<div class="alert alert-info" role="alert" id="pinned_search_{{name}}">
- <i class="fa fa-thumb-tack"></i> &nbsp;
- <strong>{% trans "Pinned search:" %}</strong>
- <em><span id="pinned_search_content_{{name}}"></span></em>
-</div>
-
<div class="modal fade table-modal-lg" tabindex="-1" role="dialog"
aria-hidden="true" id="modal_grid_{{name}}">
<div class="modal-dialog full modal-lg">
@@ -207,49 +201,6 @@ jQuery(document).ready(function(){
if (datatables_i18n) datatable_options['language'] = datatables_i18n;
datatable_{{sname}} = jQuery("#grid_{{name}}").DataTable(datatable_options);
-{% comment %}
-
- jQuery("#grid_{{name}}").jqGrid({
- url:'{{source}}',
- datatype: "json",
- mtype: 'GET',
- colNames:['id', '', {{col_names|safe}}],
- colModel:[
- {name:'id', index:'id', hidden:true},
- {name:'link', index:'link', width:30},
- {{extra_cols|safe}}
- ],
- height: 300,
- sortname: '__default__',
- viewrecords: true,
- sortorder: "asc",
- emptyrecords: "{{no_result}}",
- loadtext: "{{loading}}",
- pager: '#pager_{{name}}',
- width: null,
- shrinkToFit: false,
- rowNum:20,
- {% if multiple_select %}multiselect: true,{% endif %}
- jsonReader : {repeatitems: false},
- loadError: function (jqXHR, textStatus, errorThrown) {
- alert("{% trans "An error as occured during search. Check your query fields." %}");
- },
- beforeProcessing: function(data, status, xhr){
- $('#pinned_search_content_{{name}}').html('');
- for (idx in data){
- if (idx == 'pinned-search' && data[idx] != ''){
- $('#pinned_search_content_{{name}}').html(data[idx]);
- }
- }
- if ($('#pinned_search_content_{{name}}').html()){
- $('#pinned_search_{{name}}').show();
- } else {
- $('#pinned_search_{{name}}').hide();
- }
- }
- });
-{% endcomment %}
-
{% if multiple %}
jQuery("#add_button_{{name}}").click(function (){
var mygrid = jQuery("#grid_{{name}}");