cdm: don't try to load content which is already there
This commit is contained in:
parent
dd1c068056
commit
20f16e7197
12
viewfeed.js
12
viewfeed.js
|
@ -2001,12 +2001,16 @@ function cdmExpandArticle(id) {
|
||||||
elem = $("CICD-" + id);
|
elem = $("CICD-" + id);
|
||||||
|
|
||||||
if (!Element.visible(elem)) {
|
if (!Element.visible(elem)) {
|
||||||
$("FUPDPIC-" + id).src = "images/indicator_tiny.gif";
|
|
||||||
$("CWRAP-" + id).innerHTML = "<div class=\"insensitive\">" +
|
|
||||||
__("Loading, please wait...") + "</div>";
|
|
||||||
Element.show(elem);
|
Element.show(elem);
|
||||||
Element.hide("CEXC-" + id);
|
Element.hide("CEXC-" + id);
|
||||||
|
|
||||||
|
if ($("CWRAP-" + id).innerHTML == "") {
|
||||||
|
|
||||||
|
$("FUPDPIC-" + id).src = "images/indicator_tiny.gif";
|
||||||
|
|
||||||
|
$("CWRAP-" + id).innerHTML = "<div class=\"insensitive\">" +
|
||||||
|
__("Loading, please wait...") + "</div>";
|
||||||
|
|
||||||
var query = "?op=rpc&subop=cdmGetArticle&id=" + param_escape(id);
|
var query = "?op=rpc&subop=cdmGetArticle&id=" + param_escape(id);
|
||||||
|
|
||||||
//console.log(query);
|
//console.log(query);
|
||||||
|
@ -2028,6 +2032,8 @@ function cdmExpandArticle(id) {
|
||||||
|
|
||||||
}
|
}
|
||||||
}});
|
}});
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var new_offset = $("RROW-" + id).offsetTop;
|
var new_offset = $("RROW-" + id).offsetTop;
|
||||||
|
|
Loading…
Reference in New Issue