mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-11-29 10:01:21 +01:00
batch feed editor: UI cleanup
This commit is contained in:
parent
5d538f4f18
commit
cd935c422f
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
function batch_edit_cbox($elem, $label = false) {
|
function batch_edit_cbox($elem, $label = false) {
|
||||||
print "<input type=\"checkbox\"
|
print "<input type=\"checkbox\" title=\"".__("Check to enable field")."\"
|
||||||
onchange=\"batchFeedsToggleField(this, '$elem', '$label')\">";
|
onchange=\"batchFeedsToggleField(this, '$elem', '$label')\">";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -677,6 +677,7 @@
|
|||||||
print(
|
print(
|
||||||
"UPDATE ttrss_feeds SET $qpart WHERE id IN ($feed_ids)
|
"UPDATE ttrss_feeds SET $qpart WHERE id IN ($feed_ids)
|
||||||
AND owner_uid = " . $_SESSION["uid"]);
|
AND owner_uid = " . $_SESSION["uid"]);
|
||||||
|
print "<br/>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1352,7 +1353,6 @@
|
|||||||
<option disabled>--------</option>
|
<option disabled>--------</option>
|
||||||
<option style=\"color : #5050aa\" disabled>".__('Selection:')."</option>
|
<option style=\"color : #5050aa\" disabled>".__('Selection:')."</option>
|
||||||
<option value=\"facEdit\"> ".__('Edit')."</option>
|
<option value=\"facEdit\"> ".__('Edit')."</option>
|
||||||
<option value=\"facBatchEdit\"> ".__('Edit multiple feeds')."</option>
|
|
||||||
<option value=\"facPurge\"> ".__('Manual purge')."</option>
|
<option value=\"facPurge\"> ".__('Manual purge')."</option>
|
||||||
<option value=\"facClear\"> ".__('Clear feed data')."</option>
|
<option value=\"facClear\"> ".__('Clear feed data')."</option>
|
||||||
<option value=\"facRescore\"> ".__('Rescore articles')."</option>
|
<option value=\"facRescore\"> ".__('Rescore articles')."</option>
|
||||||
|
|||||||
24
prefs.js
24
prefs.js
@ -2101,8 +2101,15 @@ function feedActionChange() {
|
|||||||
function feedActionGo(op) {
|
function feedActionGo(op) {
|
||||||
try {
|
try {
|
||||||
if (op == "facEdit") {
|
if (op == "facEdit") {
|
||||||
|
|
||||||
|
var rows = getSelectedFeeds();
|
||||||
|
|
||||||
|
if (rows.length > 1) {
|
||||||
|
editSelectedFeeds();
|
||||||
|
} else {
|
||||||
editSelectedFeed();
|
editSelectedFeed();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (op == "facClear") {
|
if (op == "facClear") {
|
||||||
clearSelectedFeeds();
|
clearSelectedFeeds();
|
||||||
@ -2124,10 +2131,6 @@ function feedActionGo(op) {
|
|||||||
removeSelectedFeeds();
|
removeSelectedFeeds();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (op == "facBatchEdit") {
|
|
||||||
editSelectedFeeds();
|
|
||||||
}
|
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
exception_error("feedActionGo", e);
|
exception_error("feedActionGo", e);
|
||||||
|
|
||||||
@ -2250,8 +2253,7 @@ function feedsEditSave() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// var ok = confirm(__("Save changes to selected feeds?"));
|
var ok = confirm(__("Save changes to selected feeds?"));
|
||||||
var ok = true;
|
|
||||||
|
|
||||||
if (ok) {
|
if (ok) {
|
||||||
|
|
||||||
@ -2261,27 +2263,27 @@ function feedsEditSave() {
|
|||||||
|
|
||||||
/* Form.serialize ignores unchecked checkboxes */
|
/* Form.serialize ignores unchecked checkboxes */
|
||||||
|
|
||||||
if (!query.match("hidden=") &&
|
if (!query.match("&hidden=") &&
|
||||||
f.hidden.disabled == false) {
|
f.hidden.disabled == false) {
|
||||||
query = query + "&hidden=false";
|
query = query + "&hidden=false";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!query.match("rtl_content=") &&
|
if (!query.match("&rtl_content=") &&
|
||||||
f.rtl_content.disabled == false) {
|
f.rtl_content.disabled == false) {
|
||||||
query = query + "&rtl_content=false";
|
query = query + "&rtl_content=false";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!query.match("private=") &&
|
if (!query.match("&private=") &&
|
||||||
f.private.disabled == false) {
|
f.private.disabled == false) {
|
||||||
query = query + "&private=false";
|
query = query + "&private=false";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!query.match("cache_images=") &&
|
if (!query.match("&cache_images=") &&
|
||||||
f.cache_images.disabled == false) {
|
f.cache_images.disabled == false) {
|
||||||
query = query + "&cache_images=false";
|
query = query + "&cache_images=false";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!query.match("include_in_digest=") &&
|
if (!query.match("&include_in_digest=") &&
|
||||||
f.include_in_digest.disabled == false) {
|
f.include_in_digest.disabled == false) {
|
||||||
query = query + "&include_in_digest=false";
|
query = query + "&include_in_digest=false";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user