add dijit buttons in create filter dialog; code cleanup

master
Andrew Dolgov 14 years ago
parent 33d8b5d091
commit c33f56f3a2

@ -536,10 +536,10 @@
print "<div class=\"dlgButtons\">"; 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> "; __('Create')."</button> ";
print "<button onclick=\"return dijit.byId('filterEditDlg').hide()\">". print "<button dojoType=\"dijit.form.Button\" onclick=\"return dijit.byId('filterEditDlg').hide()\">".
__('Cancel')."</button>"; __('Cancel')."</button>";
print "</div>"; print "</div>";

@ -403,17 +403,17 @@
print "</div></div>"; print "</div></div>";
print "<button dojoType=\"dijit.form.Button\" onclick=\"return quickAddFilter()\">". 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()\">". 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()\">". print "<button dojoType=\"dijit.form.Button\" onclick=\"return removeSelectedFilters()\">".
__('Remove')."</button dojoType=\"dijit.form.Button\"> "; __('Remove')."</button> ";
if (defined('_ENABLE_FEED_DEBUGGING')) { if (defined('_ENABLE_FEED_DEBUGGING')) {
print "<button dojoType=\"dijit.form.Button\" onclick=\"rescore_all_feeds()\">". print "<button dojoType=\"dijit.form.Button\" onclick=\"rescore_all_feeds()\">".
__('Rescore articles')."</button dojoType=\"dijit.form.Button\"> "; __('Rescore articles')."</button> ";
} }
print "</div>"; # toolbar print "</div>"; # toolbar

Loading…
Cancel
Save