mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 13:45:56 +00:00
move several methods from dlg; fix displayed tags not updated after editing
This commit is contained in:
@@ -830,7 +830,7 @@ function addLabel(select, callback) {
|
||||
|
||||
function quickAddFeed() {
|
||||
try {
|
||||
var query = "backend.php?op=dlg&method=quickAddFeed";
|
||||
var query = "backend.php?op=feeds&method=quickAddFeed";
|
||||
|
||||
// overlapping widgets
|
||||
if (dijit.byId("batchSubDlg")) dijit.byId("batchSubDlg").destroyRecursive();
|
||||
@@ -1635,7 +1635,7 @@ function editFeed(feed, event) {
|
||||
|
||||
function feedBrowser() {
|
||||
try {
|
||||
var query = "backend.php?op=dlg&method=feedBrowser";
|
||||
var query = "backend.php?op=feeds&method=feedBrowser";
|
||||
|
||||
if (dijit.byId("feedAddDlg"))
|
||||
dijit.byId("feedAddDlg").hide();
|
||||
|
||||
@@ -159,7 +159,7 @@ function timeout() {
|
||||
}
|
||||
|
||||
function search() {
|
||||
var query = "backend.php?op=dlg&method=search¶m=" +
|
||||
var query = "backend.php?op=feeds&method=search¶m=" +
|
||||
param_escape(getActiveFeedId() + ":" + activeFeedIsCat());
|
||||
|
||||
if (dijit.byId("searchDlg"))
|
||||
|
||||
@@ -1067,7 +1067,7 @@ function catchupSelection() {
|
||||
}
|
||||
|
||||
function editArticleTags(id) {
|
||||
var query = "backend.php?op=dlg&method=editArticleTags¶m=" + param_escape(id);
|
||||
var query = "backend.php?op=article&method=editArticleTags¶m=" + param_escape(id);
|
||||
|
||||
if (dijit.byId("editTagsDlg"))
|
||||
dijit.byId("editTagsDlg").destroyRecursive();
|
||||
@@ -1085,22 +1085,25 @@ function editArticleTags(id) {
|
||||
new Ajax.Request("backend.php", {
|
||||
parameters: query,
|
||||
onComplete: function(transport) {
|
||||
notify('');
|
||||
dialog.hide();
|
||||
try {
|
||||
notify('');
|
||||
dialog.hide();
|
||||
|
||||
var data = JSON.parse(transport.responseText);
|
||||
var data = JSON.parse(transport.responseText);
|
||||
|
||||
if (data) {
|
||||
var tags_str = article.tags;
|
||||
var id = tags_str.id;
|
||||
if (data) {
|
||||
var id = data.id;
|
||||
|
||||
var tags = $("ATSTR-" + id);
|
||||
var tooltip = dijit.byId("ATSTRTIP-" + id);
|
||||
console.log(id);
|
||||
|
||||
if (tags) tags.innerHTML = tags_str.content;
|
||||
if (tooltip) tooltip.attr('label', tags_str.content_full);
|
||||
var tags = $("ATSTR-" + id);
|
||||
var tooltip = dijit.byId("ATSTRTIP-" + id);
|
||||
|
||||
cache_delete("article:" + id);
|
||||
if (tags) tags.innerHTML = data.content;
|
||||
if (tooltip) tooltip.attr('label', data.content_full);
|
||||
}
|
||||
} catch (e) {
|
||||
exception_error("editArticleTags/inner", e);
|
||||
}
|
||||
|
||||
}});
|
||||
|
||||
Reference in New Issue
Block a user