if (!row.hasClassName("marked")) {
img.src = img.src.replace("mark_unset", "mark_set");
- img.alt = __("Unstar article");
query = query + "&mark=1";
} else {
img.src = img.src.replace("mark_set", "mark_unset");
- img.alt = __("Star article");
query = query + "&mark=0";
}
}
imgs.push(fte[i]);
}
- for (i = 0; i < imgs.length; i++) {
+ for (var i = 0; i < imgs.length; i++) {
var img = imgs[i];
if (!row.hasClassName("published") || note != undefined) {
img.src = img.src.replace("pub_unset", "pub_set");
- img.alt = __("Unpublish article");
query = query + "&pub=1";
} else {
img.src = img.src.replace("pub_set", "pub_unset");
- img.alt = __("Publish article");
query = query + "&pub=0";
}
}
if (dijit.byId("editTagsDlg"))
dijit.byId("editTagsDlg").destroyRecursive();
- dialog = new dijit.Dialog({
+ var dialog = new dijit.Dialog({
id: "editTagsDlg",
title: __("Edit article Tags"),
style: "width: 600px",
var labels = getInitParam("labels");
- if (labels) {
+ if (labels && labels.length) {
menu.addChild(new dijit.MenuSeparator());