mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 15:25:59 +00:00
various dialog-related fixes; stop referring to many dialogs by name; move filter test initial dialog to client side
This commit is contained in:
@@ -3,7 +3,7 @@ class Pref_Filters extends Handler_Protected {
|
||||
|
||||
function csrf_ignore($method) {
|
||||
$csrf_ignored = array("index", "getfiltertree", "edit", "newfilter", "newrule",
|
||||
"newaction", "savefilterorder", "testfilterdlg");
|
||||
"newaction", "savefilterorder");
|
||||
|
||||
return array_search($method, $csrf_ignored) !== false;
|
||||
}
|
||||
@@ -163,21 +163,6 @@ class Pref_Filters extends Handler_Protected {
|
||||
print json_encode($rv);
|
||||
}
|
||||
|
||||
function testFilterDlg() {
|
||||
?>
|
||||
<div>
|
||||
<img id='prefFilterLoadingIndicator' src='images/indicator_tiny.gif'>
|
||||
<span id='prefFilterProgressMsg'>Looking for articles...</span>
|
||||
</div>
|
||||
|
||||
<ul class='panel panel-scrollable list list-unstyled' id='prefFilterTestResultList'></ul>
|
||||
|
||||
<footer class='text-center'>
|
||||
<button dojoType='dijit.form.Button' onclick="dijit.byId('filterTestDlg').hide()"><?php echo __('Close this window') ?></button>
|
||||
</footer>
|
||||
<?php
|
||||
}
|
||||
|
||||
private function getfilterrules_list($filter_id) {
|
||||
$sth = $this->pdo->prepare("SELECT reg_exp,
|
||||
inverse,
|
||||
|
||||
Reference in New Issue
Block a user