mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-22 04:41:29 +00:00
infobox_callback2: fail on invalid dialog xml
This commit is contained in:
@@ -466,7 +466,6 @@ function infobox_callback2(transport) {
|
|||||||
var content;
|
var content;
|
||||||
var dtitle = "Dialog";
|
var dtitle = "Dialog";
|
||||||
|
|
||||||
if (transport.responseXML) {
|
|
||||||
var dlg = transport.responseXML.getElementsByTagName("dlg")[0];
|
var dlg = transport.responseXML.getElementsByTagName("dlg")[0];
|
||||||
|
|
||||||
var title = transport.responseXML.getElementsByTagName("title")[0];
|
var title = transport.responseXML.getElementsByTagName("title")[0];
|
||||||
@@ -477,10 +476,6 @@ function infobox_callback2(transport) {
|
|||||||
|
|
||||||
content = content.firstChild.nodeValue;
|
content = content.firstChild.nodeValue;
|
||||||
|
|
||||||
} else {
|
|
||||||
content = transport.responseText;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!dialog) {
|
if (!dialog) {
|
||||||
dialog = new dijit.Dialog({
|
dialog = new dijit.Dialog({
|
||||||
title: title,
|
title: title,
|
||||||
|
|||||||
Reference in New Issue
Block a user