search form: set default action

This commit is contained in:
Andrew Dolgov 2017-12-11 18:14:45 +03:00
parent f70d456a5b
commit 320a3ba529
1 changed files with 5 additions and 1 deletions

View File

@ -1133,6 +1133,8 @@ class Feeds extends Handler_Protected {
$active_feed_id = sprintf("%d", $this->params[0]); $active_feed_id = sprintf("%d", $this->params[0]);
$is_cat = $this->params[1] != "false"; $is_cat = $this->params[1] != "false";
print "<form onsubmit='return false;'>";
print "<div class=\"dlgSec\">".__('Look for')."</div>"; print "<div class=\"dlgSec\">".__('Look for')."</div>";
print "<div class=\"dlgSecCont\">"; print "<div class=\"dlgSecCont\">";
@ -1159,9 +1161,11 @@ class Feeds extends Handler_Protected {
</div>"; </div>";
} }
print "<button dojoType=\"dijit.form.Button\" onclick=\"dijit.byId('searchDlg').execute()\">".__('Search')."</button> print "<button dojoType=\"dijit.form.Button\" type=\"submit\" onclick=\"dijit.byId('searchDlg').execute()\">".__('Search')."</button>
<button dojoType=\"dijit.form.Button\" onclick=\"dijit.byId('searchDlg').hide()\">".__('Cancel')."</button> <button dojoType=\"dijit.form.Button\" onclick=\"dijit.byId('searchDlg').hide()\">".__('Cancel')."</button>
</div>"; </div>";
print "</form>";
} }
function update_debugger() { function update_debugger() {