Compare commits
8 Commits
Author | SHA1 | Date |
---|---|---|
github-actions | 6942278b41 | |
Guy Sartorelli | c9c6c3ff1e | |
Guy Sartorelli | f5b5daa711 | |
github-actions | aa3d0a3b6a | |
Guy Sartorelli | aa085022a1 | |
Will Rossiter | a25d0432c4 | |
github-actions | 030c56777c | |
Guy Sartorelli | 03869a7535 |
|
@ -2,17 +2,32 @@
|
||||||
* File: ReportAdmin.js
|
* File: ReportAdmin.js
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function($) {
|
(function ($) {
|
||||||
$.entwine('ss', function($){
|
$.entwine("ss", function ($) {
|
||||||
$('.ReportAdmin .cms-edit-form').entwine({
|
$(".ReportAdmin .cms-edit-form").entwine({
|
||||||
onsubmit: function(e) {
|
onsubmit: function (e) {
|
||||||
var url = $.path.parseUrl(document.location.href).hrefNoSearch,
|
let url = $.path.parseUrl(document.location.href).hrefNoSearch;
|
||||||
params = this.find(':input[name^=filters]').serializeArray();
|
let params = this.find(":input[name^=filters]").serializeArray();
|
||||||
params = $.grep(params, function(param) {return (param.value);}); // filter out empty
|
|
||||||
if(params) url = $.path.addSearchParams(url, $.param(params));
|
try {
|
||||||
$('.cms-container').loadPanel(url);
|
params = $.grep(params, function (param) {
|
||||||
return false;
|
// filter out empty
|
||||||
}
|
return param.value;
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
// convert params to a query string
|
||||||
|
params = $.param(params);
|
||||||
|
|
||||||
|
// append query string to url
|
||||||
|
url += "?" + params;
|
||||||
|
|
||||||
|
$(".cms-container").loadPanel(url);
|
||||||
|
} catch (err) {
|
||||||
|
console.error(err);
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
},
|
||||||
|
});
|
||||||
|
});
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
en:
|
en:
|
||||||
|
SilverStripe\CMS\Controllers\CMSPageHistoryController:
|
||||||
|
PREVIEW: 'Website preview'
|
||||||
|
SilverStripe\Forms\GridField\GridField:
|
||||||
|
Filter: Filter
|
||||||
SilverStripe\Reports\ReportAdmin:
|
SilverStripe\Reports\ReportAdmin:
|
||||||
MENUTITLE: Reports
|
MENUTITLE: Reports
|
||||||
ReportTitle: Title
|
ReportTitle: Title
|
||||||
SilverStripe\Reports\SideReport:
|
SilverStripe\Reports\SideReport:
|
||||||
OtherGroupTitle: Other
|
OtherGroupTitle: Other
|
||||||
REPEMPTY: 'The {title} report is empty.'
|
REPEMPTY: 'The {title} report is empty.'
|
||||||
SilverStripe\CMS\Controllers\CMSPageHistoryController:
|
|
||||||
PREVIEW: 'Website preview'
|
|
||||||
SilverStripe\Forms\GridField\GridField:
|
|
||||||
Filter: Filter
|
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
eo:
|
eo:
|
||||||
|
SilverStripe\CMS\Controllers\CMSPageHistoryController:
|
||||||
|
PREVIEW: 'Retejon antaŭvidi'
|
||||||
|
SilverStripe\Forms\GridField\GridField:
|
||||||
|
Filter: Filtrilo
|
||||||
SilverStripe\Reports\ReportAdmin:
|
SilverStripe\Reports\ReportAdmin:
|
||||||
MENUTITLE: Raportoj
|
MENUTITLE: Raportoj
|
||||||
ReportTitle: Titoloj
|
ReportTitle: Titoloj
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
sk:
|
sk:
|
||||||
|
SilverStripe\CMS\Controllers\CMSPageHistoryController:
|
||||||
|
PREVIEW: 'Náhľad webovej stránky'
|
||||||
SilverStripe\Reports\ReportAdmin:
|
SilverStripe\Reports\ReportAdmin:
|
||||||
MENUTITLE: Výkazy
|
MENUTITLE: Správy
|
||||||
ReportTitle: Titulok
|
ReportTitle: Názov
|
||||||
SilverStripe\Reports\SideReport:
|
SilverStripe\Reports\SideReport:
|
||||||
OtherGroupTitle: Iné
|
OtherGroupTitle: Iné
|
||||||
REPEMPTY: 'Výkaz {title} je prázdny.'
|
REPEMPTY: 'Správa {title} je prázdna.'
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
sv:
|
sv:
|
||||||
|
SilverStripe\CMS\Controllers\CMSPageHistoryController:
|
||||||
|
PREVIEW: 'Webbplats förhandsvisning'
|
||||||
SilverStripe\Reports\ReportAdmin:
|
SilverStripe\Reports\ReportAdmin:
|
||||||
MENUTITLE: Rapporter
|
MENUTITLE: Rapporter
|
||||||
ReportTitle: Titel
|
ReportTitle: Titel
|
||||||
|
|
Loading…
Reference in New Issue