]> git.wh0rd.org Git - tt-rss.git/commitdiff
add dijit buttons in create filter dialog; code cleanup
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 20 Nov 2010 21:34:18 +0000 (00:34 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 20 Nov 2010 21:34:18 +0000 (00:34 +0300)
modules/popup-dialog.php
modules/pref-filters.php

index ad3ca0c3a6d04340189a4ff1a77b19f2b7296214..eb2f697cd9abd7ec6bec7e770ff036cab925f696 100644 (file)
 
                        print "<div class=\"dlgButtons\">";
 
-                       print "<button onclick=\"return dijit.byId('filterEditDlg').execute()\">".
+                       print "<button dojoType=\"dijit.form.Button\" onclick=\"return dijit.byId('filterEditDlg').execute()\">".
                                __('Create')."</button> ";
 
-                       print "<button onclick=\"return dijit.byId('filterEditDlg').hide()\">".
+                       print "<button dojoType=\"dijit.form.Button\" onclick=\"return dijit.byId('filterEditDlg').hide()\">".
                                __('Cancel')."</button>";
 
                        print "</div>";
index 7ae547267f6234fbcf70aa9d6597879addaaef6a..5d4b60bc40525e976d0cd6eb108bfd1993b3fe7e 100644 (file)
                print "</div></div>";
                
                print "<button dojoType=\"dijit.form.Button\" onclick=\"return quickAddFilter()\">".
-                       __('Create filter')."</button dojoType=\"dijit.form.Button\"> "; 
+                       __('Create filter')."</button> "; 
 
                print "<button dojoType=\"dijit.form.Button\" onclick=\"return editSelectedFilter()\">".
-                       __('Edit')."</button dojoType=\"dijit.form.Button\"> ";
+                       __('Edit')."</button> ";
 
                print "<button dojoType=\"dijit.form.Button\" onclick=\"return removeSelectedFilters()\">".
-                       __('Remove')."</button dojoType=\"dijit.form.Button\"> ";
+                       __('Remove')."</button> ";
 
                if (defined('_ENABLE_FEED_DEBUGGING')) {
                        print "<button dojoType=\"dijit.form.Button\" onclick=\"rescore_all_feeds()\">".
-                               __('Rescore articles')."</button dojoType=\"dijit.form.Button\"> "; 
+                               __('Rescore articles')."</button> "; 
                }
 
                print "</div>"; # toolbar