|
|
@ -1930,16 +1930,26 @@ function initHeadlinesMenu() {
|
|
|
|
label: name,
|
|
|
|
label: name,
|
|
|
|
labelId: bare_id,
|
|
|
|
labelId: bare_id,
|
|
|
|
onClick: function(event) {
|
|
|
|
onClick: function(event) {
|
|
|
|
selectionAssignLabel(this.labelId,
|
|
|
|
var ids = getSelectedArticleIds2();
|
|
|
|
[this.getParent().ownerMenu.callerRowId]);
|
|
|
|
// cast to string
|
|
|
|
|
|
|
|
var id = this.getParent().ownerMenu.callerRowId + "";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ids = ids.size() != 0 && ids.indexOf(id) != -1 ? ids : [id];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
selectionAssignLabel(this.labelId, ids);
|
|
|
|
}}));
|
|
|
|
}}));
|
|
|
|
|
|
|
|
|
|
|
|
labelDelMenu.addChild(new dijit.MenuItem({
|
|
|
|
labelDelMenu.addChild(new dijit.MenuItem({
|
|
|
|
label: name,
|
|
|
|
label: name,
|
|
|
|
labelId: bare_id,
|
|
|
|
labelId: bare_id,
|
|
|
|
onClick: function(event) {
|
|
|
|
onClick: function(event) {
|
|
|
|
selectionRemoveLabel(this.labelId,
|
|
|
|
var ids = getSelectedArticleIds2();
|
|
|
|
[this.getParent().ownerMenu.callerRowId]);
|
|
|
|
// cast to string
|
|
|
|
|
|
|
|
var id = this.getParent().ownerMenu.callerRowId + "";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ids = ids.size() != 0 && ids.indexOf(id) != -1 ? ids : [id];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
selectionRemoveLabel(this.labelId, ids);
|
|
|
|
}}));
|
|
|
|
}}));
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|