From: Andrew Dolgov Date: Wed, 12 Aug 2015 09:11:12 +0000 (+0300) Subject: display lack of filter plugin actions properly X-Git-Tag: 16.3~152 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b028da0a2d808f7d316734ecf479eeb3e96e2ec8;p=tt-rss.git display lack of filter plugin actions properly --- diff --git a/classes/pref/filters.php b/classes/pref/filters.php index a2a2d092..efa82afc 100644 --- a/classes/pref/filters.php +++ b/classes/pref/filters.php @@ -1033,11 +1033,19 @@ class Pref_Filters extends Handler_Protected { $filter_action_hash[$fclass . ":" . $faction["action"]] = $fclass . ": " . $faction["description"]; } + } + + if (count($filter_action_hash) == 0) { + $filter_plugin_disabled = "disabled"; + $filter_action_hash["no-data"] = __("No actions available"); + + } else { + $filter_plugin_disabled = ""; } print_select_hash("filterDlg_actionParamPlugin", $action_param, $filter_action_hash, - "style=\"$plugin_param_hidden\" dojoType=\"dijit.form.Select\"", + "style=\"$plugin_param_hidden\" dojoType=\"dijit.form.Select\" $filter_plugin_disabled", "action_param_plugin"); print ""; diff --git a/css/dijit.css b/css/dijit.css index 8807490f..5325f78d 100644 --- a/css/dijit.css +++ b/css/dijit.css @@ -518,6 +518,14 @@ button[disabled], display : none; } +.claro .dijitSelect.dijitSelectDisabled { + background-color: #eeeeee; +} + +.claro .dijitSelect.dijitSelectDisabled .dijitSelectLabel { + cursor: not-allowed; +} + .claro .dijitTextBox.dijitReadOnly, .claro .dijitTextBox.dijitReadOnly .dijitInputField .dijitInputInner { cursor: not-allowed;