]> git.wh0rd.org Git - tt-rss.git/commitdiff
display lack of filter plugin actions properly
authorAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Wed, 12 Aug 2015 09:11:12 +0000 (12:11 +0300)
committerAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Wed, 12 Aug 2015 09:11:12 +0000 (12:11 +0300)
classes/pref/filters.php
css/dijit.css

index a2a2d0928861be2122983494d0a8b53b3ec383c2..efa82afc2ee187ff8dea7c57b0a407cf80b46e0e 100644 (file)
@@ -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 "</span>";
index 8807490f9dc2fdabf0e6e7178a75633a35de49ec..5325f78d022626a096c9d376d14606874bdc0dbc 100644 (file)
@@ -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;