diff --git a/cp/resources/views/partials/js-applications.twig b/cp/resources/views/partials/js-applications.twig index a08d471..da0bee8 100644 --- a/cp/resources/views/partials/js-applications.twig +++ b/cp/resources/views/partials/js-applications.twig @@ -113,6 +113,7 @@ responsiveLayout: "collapse", responsiveLayoutCollapseStartOpen:false, resizableColumns:false, + placeholder: "{{ __('No Data') }}", columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, {title:"{{ __('Name') }}", field:"name", width:250, headerSort:false, formatter: domainLinkFormatter, responsive:0}, @@ -135,10 +136,7 @@ }); } }}, - ], - placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters - } + ] }); var searchInput = document.getElementById("search-input"); searchInput.addEventListener("input", function () { diff --git a/cp/resources/views/partials/js-contacts.twig b/cp/resources/views/partials/js-contacts.twig index 67fb81c..a07cb3e 100644 --- a/cp/resources/views/partials/js-contacts.twig +++ b/cp/resources/views/partials/js-contacts.twig @@ -92,6 +92,7 @@ responsiveLayout: "collapse", responsiveLayoutCollapseStartOpen:false, resizableColumns:false, + placeholder: "{{ __('No Data') }}", columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, {title:"{{ __('Identifier') }}", field:"identifier", width:250, headerSort:false, formatter: contactLinkFormatter, responsive:0}, @@ -113,10 +114,7 @@ }); } }}, - ], - placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters - } + ] }); var searchInput = document.getElementById("search-input"); searchInput.addEventListener("input", function () { diff --git a/cp/resources/views/partials/js-domains.twig b/cp/resources/views/partials/js-domains.twig index 7d63893..8036a1a 100644 --- a/cp/resources/views/partials/js-domains.twig +++ b/cp/resources/views/partials/js-domains.twig @@ -111,6 +111,7 @@ responsiveLayout: "collapse", responsiveLayoutCollapseStartOpen:false, resizableColumns:false, + placeholder: "{{ __('No Data') }}", columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, {title:"{{ __('Name') }}", field:"name", width:200, headerSort:false, formatter: domainLinkFormatter, responsive:0}, @@ -157,10 +158,7 @@ }); } }}, - ], - placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters - } + ] }); var searchInput = document.getElementById("search-input"); searchInput.addEventListener("input", function () { diff --git a/cp/resources/views/partials/js-hosts.twig b/cp/resources/views/partials/js-hosts.twig index 84ce2ab..910435f 100644 --- a/cp/resources/views/partials/js-hosts.twig +++ b/cp/resources/views/partials/js-hosts.twig @@ -91,6 +91,7 @@ responsiveLayout: "collapse", responsiveLayoutCollapseStartOpen:false, resizableColumns:false, + placeholder: "{{ __('No Data') }}", columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, {title:"{{ __('Host Name') }}", field:"name", width:300, headerSort:false, formatter: hostLinkFormatter, responsive:0}, @@ -111,10 +112,7 @@ }); } }}, - ], - placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters - } + ] }); var searchInput = document.getElementById("search-input"); diff --git a/cp/resources/views/partials/js-invoices.twig b/cp/resources/views/partials/js-invoices.twig index 9ff9db9..c742174 100644 --- a/cp/resources/views/partials/js-invoices.twig +++ b/cp/resources/views/partials/js-invoices.twig @@ -35,6 +35,7 @@ initialSort:[ {column:"invoice_number", dir:"desc"}, ], + placeholder: "{{ __('No Data') }}", columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, {title:"{{ __('Number') }}", field:"invoice_number", width:200, headerSort:true, formatter: invoiceLinkFormatter, responsive:0}, @@ -47,10 +48,7 @@ negativeSign:true, }}, {title: "{{ __('Actions') }}", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick:function(e, cell){ e.stopPropagation(); }}, - ], - placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters - } + ] }); var searchInput = document.getElementById("search-input"); searchInput.addEventListener("input", function () { diff --git a/cp/resources/views/partials/js-log.twig b/cp/resources/views/partials/js-log.twig index e163bf1..52cad19 100644 --- a/cp/resources/views/partials/js-log.twig +++ b/cp/resources/views/partials/js-log.twig @@ -22,15 +22,13 @@ initialSort:[ {column:"date", dir:"desc"}, // sorting by the "cldate" field in descending order ], + placeholder: "{{ __('No Data') }}", columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, {title:"{{ __('Registrar') }}", field:"registrar_id.name", headerSort:true, responsive:0}, {title:"{{ __('Date') }}", field:"date", headerSort:true, responsive:0}, {title:"{{ __('Log') }}", field:"log", headerSort:true, responsive:2}, - ], - placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters - } + ] }); var searchInput = document.getElementById("search-input"); searchInput.addEventListener("input", function () { diff --git a/cp/resources/views/partials/js-logs.twig b/cp/resources/views/partials/js-logs.twig index 2354b8b..94a9c70 100644 --- a/cp/resources/views/partials/js-logs.twig +++ b/cp/resources/views/partials/js-logs.twig @@ -45,6 +45,7 @@ initialSort:[ {column:"cldate", dir:"desc"}, // sorting by the "cldate" field in descending order ], + placeholder: "{{ __('No Data') }}", columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, {title:"{{ __('Date') }}", field:"cldate", headerSort:true, responsive:0}, @@ -66,10 +67,7 @@ {title:"{{ __('Message') }}", field:"msg", headerSort:true, responsive:2, download:false}, {title:"{{ __('clTRID') }}", field:"clTRID", headerSort:true, responsive:2, download:false}, {title:"{{ __('Milliseconds') }}", field:"svmicrosecond", headerSort:false, download:false, responsive:2}, - ], - placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters - } + ] }); var searchInput = document.getElementById("search-input"); searchInput.addEventListener("input", function () { diff --git a/cp/resources/views/partials/js-overview.twig b/cp/resources/views/partials/js-overview.twig index f15377e..e202b2e 100644 --- a/cp/resources/views/partials/js-overview.twig +++ b/cp/resources/views/partials/js-overview.twig @@ -24,6 +24,7 @@ initialSort:[ {column:"date", dir:"desc"}, ], + placeholder: "{{ __('No Data') }}", columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, {title:"{{ __('Registrar') }}", field:"registrar_id.name", headerSort:true, responsive:0}, @@ -35,10 +36,7 @@ symbol:currency, negativeSign:true, }}, - ], - placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters - } + ] }); var searchInput = document.getElementById("search-input"); searchInput.addEventListener("input", function () { diff --git a/cp/resources/views/partials/js-poll.twig b/cp/resources/views/partials/js-poll.twig index e7469a2..b3472eb 100644 --- a/cp/resources/views/partials/js-poll.twig +++ b/cp/resources/views/partials/js-poll.twig @@ -22,6 +22,7 @@ initialSort:[ {column:"id", dir:"desc"}, // sorting by the "id" field in descending order ], + placeholder: "{{ __('No Data') }}", columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, {title:"{{ __('ID') }}", field:"id", headerSort:true, responsive:2}, @@ -30,10 +31,7 @@ {title:"{{ __('Message') }}", field:"msg", headerSort:true, responsive:0}, {title:"{{ __('Message Type') }}", field:"msg_type", headerSort:true, responsive:0}, {title:"{{ __('Object') }}", field:"obj_name_or_id", headerSort:true, responsive:2}, - ], - placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters - } + ] }); var searchInput = document.getElementById("search-input"); searchInput.addEventListener("input", function () { diff --git a/cp/resources/views/partials/js-profile.twig b/cp/resources/views/partials/js-profile.twig index 0ebfacf..81de02a 100644 --- a/cp/resources/views/partials/js-profile.twig +++ b/cp/resources/views/partials/js-profile.twig @@ -140,6 +140,7 @@ initialSort:[ {column:"event_time", dir:"desc"}, ], + placeholder: "{{ __('No log data for user.') }}", columns: [ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, {title: "{{ __('Event') }}", field: "user_event", minWidth:30, width:120, headerSort:false, responsive:0}, @@ -147,10 +148,7 @@ {title: "{{ __('IP') }}", field: "user_ip", minWidth:30, width:150, headerSort:false, responsive:0}, {title: "{{ __('Location') }}", field: "user_location", minWidth:30, width:100, headerSort:false, responsive:0}, {title: "{{ __('Timestamp') }}", field: "event_time", minWidth:30, width:250, headerSort:false, responsive:0}, - ], - placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No log data for user.') }}"; //set placeholder based on if there are currently any header filters - } + ] }); }); \ No newline at end of file diff --git a/cp/resources/views/partials/js-registrars.twig b/cp/resources/views/partials/js-registrars.twig index 52fb69f..cec5fcd 100644 --- a/cp/resources/views/partials/js-registrars.twig +++ b/cp/resources/views/partials/js-registrars.twig @@ -39,6 +39,7 @@ responsiveLayout: "collapse", responsiveLayoutCollapseStartOpen:false, resizableColumns:false, + placeholder: "{{ __('No Data') }}", columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, {title:"{{ __('Name') }}", field:"name", width:200, headerSort:true, formatter: registrarLinkFormatter, responsive:0}, @@ -51,10 +52,7 @@ negativeSign:true, }}, {title: "{{ __('Actions') }}", formatter: actionsFormatter, responsive:0, headerSort: false, download:false, hozAlign: "center", cellClick:function(e, cell){ e.stopPropagation(); }}, - ], - placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters - } + ] }); var searchInput = document.getElementById("search-input"); searchInput.addEventListener("input", function () { diff --git a/cp/resources/views/partials/js-reports.twig b/cp/resources/views/partials/js-reports.twig index b5742fb..a6c437c 100644 --- a/cp/resources/views/partials/js-reports.twig +++ b/cp/resources/views/partials/js-reports.twig @@ -22,6 +22,7 @@ initialSort:[ {column:"date", dir:"desc"}, ], + placeholder: "{{ __('No Data') }}", columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, {title:"{{ __('Date') }}", field:"date", headerSort:true, responsive:0}, @@ -31,10 +32,7 @@ {title:"{{ __('Transferred Domains') }}", field:"transfered_domains", headerSort:true, responsive:2}, {title:"{{ __('Deleted Domains') }}", field:"deleted_domains", headerSort:true, responsive:2}, {title:"{{ __('Restored Domains') }}", field:"restored_domains", headerSort:true, responsive:2, download:false} - ], - placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters - } + ] }); var searchInput = document.getElementById("search-input"); searchInput.addEventListener("input", function () { diff --git a/cp/resources/views/partials/js-support.twig b/cp/resources/views/partials/js-support.twig index ac1d9ab..a33f1b0 100644 --- a/cp/resources/views/partials/js-support.twig +++ b/cp/resources/views/partials/js-support.twig @@ -88,6 +88,7 @@ initialSort:[ {column:"status", dir:"desc"}, ], + placeholder: "{{ __('No Data') }}", columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, {title:"{{ __('Subject') }}", field:"subject", width:350, minWidth:100, headerSort:true, formatter: ticketLinkFormatter, responsive:0}, @@ -95,10 +96,7 @@ {title:"{{ __('Status') }}", field:"status", headerSort:true, width:250, minWidth:100, formatter: statusFormatter, responsive:2}, {title:"{{ __('Priority') }}", field:"priority", headerSort:true, width:250, minWidth:100, formatter: priorityFormatter, responsive:2}, {title: "{{ __('Actions') }}", formatter: actionsFormatter, headerSort: false, download:false, hozAlign: "center", responsive:0, cellClick:function(e, cell){ e.stopPropagation(); }}, - ], - placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters - } + ] }); var searchInput = document.getElementById("search-input"); searchInput.addEventListener("input", function () { diff --git a/cp/resources/views/partials/js-tlds.twig b/cp/resources/views/partials/js-tlds.twig index 78deb23..d976cc8 100644 --- a/cp/resources/views/partials/js-tlds.twig +++ b/cp/resources/views/partials/js-tlds.twig @@ -65,16 +65,14 @@ responsiveLayout: "collapse", responsiveLayoutCollapseStartOpen:false, resizableColumns:false, + placeholder: "{{ __('No Data') }}", columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, {title:"TLD", field:"tld", width:400, minWidth:50, headerSort:true, resizable:false, formatter: tldLinkFormatter, responsive:0}, { title: "{{ __('Script') }}", field: "idn_table", width:300, minWidth:80, headerSort:true, resizable:false, formatter: scriptNameFormatter, responsive:2}, {title:"DNSSEC", field:"secure", width:250, minWidth:80, headerSort:true, resizable:false, formatter: secureFormatter, responsive:2}, {title: "{{ __('Actions') }}", formatter: actionsFormatter, headerSort: false, resizable:false, download:false, hozAlign: "center", responsive:0, cellClick:function(e, cell){ e.stopPropagation(); }}, - ], - placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters - } + ] }); var searchInput = document.getElementById("search-input"); searchInput.addEventListener("input", function () { diff --git a/cp/resources/views/partials/js-transactions.twig b/cp/resources/views/partials/js-transactions.twig index 750f3f2..526021b 100644 --- a/cp/resources/views/partials/js-transactions.twig +++ b/cp/resources/views/partials/js-transactions.twig @@ -23,6 +23,7 @@ initialSort:[ {column:"date", dir:"desc"}, ], + placeholder: "{{ __('No Data') }}", columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, {title:"{{ __('Registrar') }}", field:"registrar_id.name", headerSort:true, responsive:0}, @@ -38,10 +39,7 @@ symbol:currency, negativeSign:true, }}, - ], - placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters - } + ] }); var searchInput = document.getElementById("search-input"); searchInput.addEventListener("input", function () { diff --git a/cp/resources/views/partials/js-transfers.twig b/cp/resources/views/partials/js-transfers.twig index c161643..66e4632 100644 --- a/cp/resources/views/partials/js-transfers.twig +++ b/cp/resources/views/partials/js-transfers.twig @@ -77,6 +77,7 @@ responsiveLayout: "collapse", responsiveLayoutCollapseStartOpen:false, resizableColumns:false, + placeholder: "{{ __('No Data') }}", columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, {title:"{{ __('Name') }}", field:"name", width:300, minWidth:200, formatter: domainLinkFormatter, headerSort:true, responsive:0}, @@ -122,10 +123,7 @@ }); } }}, - ], - placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters - } + ] }); var searchInput = document.getElementById("search-input"); searchInput.addEventListener("input", function () { diff --git a/cp/resources/views/partials/js-users.twig b/cp/resources/views/partials/js-users.twig index be6deb5..1e0f3c9 100644 --- a/cp/resources/views/partials/js-users.twig +++ b/cp/resources/views/partials/js-users.twig @@ -63,6 +63,7 @@ responsiveLayout: "collapse", responsiveLayoutCollapseStartOpen:false, resizableColumns:false, + placeholder: "{{ __('No Data') }}", columns:[ {formatter:"responsiveCollapse", width:30, minWidth:30, hozAlign:"center", resizable:false, headerSort:false, responsive:0}, {title:"{{ __('Name') }}", field:"username", width:200, headerSort:true, formatter: userLinkFormatter, responsive:0}, @@ -70,10 +71,7 @@ {title:"{{ __('Roles') }}", field:"roles_mask", width:200, headerSort:true, formatter: roleLabelFormatter, responsive:2}, {title:"{{ __('Verified') }}", field:"verified", width:200, headerSort:true, formatter: verifiedFormatter, responsive:2}, {title:"{{ __('Status') }}", field:"status", width:200, headerSort:true, formatter: statusBadgeFormatter, responsive:2}, - ], - placeholder:function(){ - return this.getHeaderFilters().length ? "No Matching Data" : "{{ __('No Data') }}"; //set placeholder based on if there are currently any header filters - } + ] }); var searchInput = document.getElementById("search-input"); searchInput.addEventListener("input", function () {