extended search dialog placeholder, disabled for now
This commit is contained in:
parent
aee198609d
commit
033e47e09b
21
backend.php
21
backend.php
|
@ -1320,7 +1320,9 @@
|
||||||
$param = $_GET["param"];
|
$param = $_GET["param"];
|
||||||
|
|
||||||
if ($id == "quickAddFeed") {
|
if ($id == "quickAddFeed") {
|
||||||
print "Feed URL: <input id=\"qafInput\">
|
print "Feed URL: <input
|
||||||
|
onblur=\"javascript:enableHotkeys()\" onfocus=\"javascript:disableHotkeys()\"
|
||||||
|
id=\"qafInput\">
|
||||||
<input class=\"button\"
|
<input class=\"button\"
|
||||||
type=\"submit\" onclick=\"javascript:qafAdd()\" value=\"Add feed\">
|
type=\"submit\" onclick=\"javascript:qafAdd()\" value=\"Add feed\">
|
||||||
<input class=\"button\"
|
<input class=\"button\"
|
||||||
|
@ -1352,6 +1354,23 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($id == "search") {
|
||||||
|
|
||||||
|
print "<input id=\"searchbox\" class=\"extSearch\"
|
||||||
|
onblur=\"javascript:enableHotkeys()\" onfocus=\"javascript:disableHotkeys()\"
|
||||||
|
onchange=\"javascript:search()\">
|
||||||
|
<select id=\"searchmodebox\">
|
||||||
|
<option selected>All feeds</option>
|
||||||
|
<option>This feed</option>
|
||||||
|
</select>
|
||||||
|
<input type=\"submit\"
|
||||||
|
class=\"button\" onclick=\"javascript:search()\" value=\"Search\">
|
||||||
|
<input class=\"button\"
|
||||||
|
type=\"submit\" onclick=\"javascript:closeDlg()\"
|
||||||
|
value=\"Close\">";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
db_close($link);
|
db_close($link);
|
||||||
|
|
|
@ -402,3 +402,7 @@ pre {
|
||||||
#qafInput {
|
#qafInput {
|
||||||
width : 300px;
|
width : 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input.extSearch {
|
||||||
|
width : 200px;
|
||||||
|
}
|
||||||
|
|
14
tt-rss.js
14
tt-rss.js
|
@ -201,6 +201,9 @@ function viewCurrentFeed(skip, subop) {
|
||||||
|
|
||||||
if (getActiveFeedId()) {
|
if (getActiveFeedId()) {
|
||||||
viewfeed(getActiveFeedId(), skip, subop);
|
viewfeed(getActiveFeedId(), skip, subop);
|
||||||
|
} else {
|
||||||
|
disableContainerChildren("headlinesToolbar", false, document);
|
||||||
|
viewfeed(-1, skip, subop); // FIXME
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -428,10 +431,15 @@ function quickMenuGo() {
|
||||||
|
|
||||||
var opname = chooser[chooser.selectedIndex].text;
|
var opname = chooser[chooser.selectedIndex].text;
|
||||||
|
|
||||||
if (opname.match("Preferences")) {
|
if (opname == "Preferences") {
|
||||||
gotoPreferences();
|
gotoPreferences();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (opname == "Extended search") {
|
||||||
|
displayDlg("search");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (opname.match("Add new feed")) {
|
if (opname.match("Add new feed")) {
|
||||||
displayDlg("quickAddFeed");
|
displayDlg("quickAddFeed");
|
||||||
return;
|
return;
|
||||||
|
@ -448,7 +456,6 @@ function quickMenuGo() {
|
||||||
displayDlg("quickDelFeed", actid);
|
displayDlg("quickDelFeed", actid);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function qafAdd() {
|
function qafAdd() {
|
||||||
|
@ -505,5 +512,6 @@ function qfdDelete(feed_id) {
|
||||||
xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=remove&ids=" + feed_id);
|
xmlhttp.open("GET", "backend.php?op=pref-feeds&subop=remove&ids=" + feed_id);
|
||||||
xmlhttp.onreadystatechange=dlg_frefresh_callback;
|
xmlhttp.onreadystatechange=dlg_frefresh_callback;
|
||||||
xmlhttp.send(null);
|
xmlhttp.send(null);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -76,9 +76,6 @@
|
||||||
<td valign="top" class="headlinesToolbarBox">
|
<td valign="top" class="headlinesToolbarBox">
|
||||||
<table width="100%" cellpadding="0" cellspacing="0">
|
<table width="100%" cellpadding="0" cellspacing="0">
|
||||||
|
|
||||||
<!-- <tr><td id="headlinesTitle" class="headlinesTitle">
|
|
||||||
|
|
||||||
</td></tr> -->
|
|
||||||
<tr><td class="headlinesToolbar" id="headlinesToolbar">
|
<tr><td class="headlinesToolbar" id="headlinesToolbar">
|
||||||
<input id="searchbox"
|
<input id="searchbox"
|
||||||
onblur="javascript:enableHotkeys()" onfocus="javascript:disableHotkeys()"
|
onblur="javascript:enableHotkeys()" onfocus="javascript:disableHotkeys()"
|
||||||
|
@ -90,10 +87,10 @@
|
||||||
|
|
||||||
<input type="submit"
|
<input type="submit"
|
||||||
class="button" onclick="javascript:search()" value="Search">
|
class="button" onclick="javascript:search()" value="Search">
|
||||||
<!-- <input type="submit"
|
|
||||||
class="button" onclick="javascript:resetSearch()" value="Reset"> -->
|
|
||||||
|
|
||||||
View:
|
|
||||||
|
|
||||||
|
View:
|
||||||
|
|
||||||
<select id="viewbox" onchange="javascript:viewCurrentFeed(0, '')">
|
<select id="viewbox" onchange="javascript:viewCurrentFeed(0, '')">
|
||||||
<option>All Articles</option>
|
<option>All Articles</option>
|
||||||
|
|
Loading…
Reference in New Issue