Merged BRANCHES/V3.4 to HEAD:

24209: Fixes for screenshot 5 in ALF-5590: Translation errors in Explorer

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@24211 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2010-12-03 14:52:07 +00:00
parent cb4b55347f
commit b4ffc16746
5 changed files with 66 additions and 42 deletions

View File

@@ -66,13 +66,21 @@ var AlfTagger = new Class(
/* allow child selection navigation */
allowChildNavigation: true,
/* label to use for Add icon */
addLabel: null,
/* label to use for Remove icon */
removeLabel: null,
initialize: function(id, varName, service, formClientId)
initialize: function(id, varName, service, formClientId, addLabel, removeLabel)
{
this.id = id;
this.varName = varName;
this.service = service;
this.formClientId = formClientId;
this.addLabel = addLabel;
this.removeLabel = removeLabel;
this.selected = [];
this.preselected = [];
@@ -241,7 +249,7 @@ var AlfTagger = new Class(
var actionScript = "javascript:" + this.varName + ".delItem('" + item.id + "');";
var actionLink = new Element("a", {"href": actionScript});
var deleteIcon = new Element("img", {"src": getContextPath() + "/images/icons/minus.gif", "class": "pickerSelectedIcon",
"border": 0, "title": "Remove", "alt": "Remove"});
"border": 0, "title": this.removeLabel, "alt": this.removeLabel});
deleteIcon.injectInside(actionLink);
actionLink.injectInside(actionSpan);
actionSpan.injectInside(itemDiv);
@@ -406,7 +414,7 @@ var AlfTagger = new Class(
var actionScript = "javascript:" + tagger.varName + ".addItem(-1);";
var actionLink = new Element("a", {"href": actionScript});
var actionImg = new Element("img", {"id": actionId, "src": getContextPath() + "/images/icons/plus.gif", "class": "taggerActionButton",
"border": 0, "title": "Add", "alt": "Add"});
"border": 0, "title": this.addLabel, "alt": this.addLabel});
actionImg.injectInside(actionLink);
actionLink.injectInside($(tagger.id + "-nav-add"));
// style modification for this Add button - it's inside a floating div unlike the others
@@ -466,7 +474,7 @@ var AlfTagger = new Class(
var actionScript = "javascript:" + this.varName + ".addItem(" + index + ");";
var actionLink = new Element("a", {"href": actionScript});
var actionImg = new Element("img", {"id": actionId, "src": getContextPath() + "/images/icons/plus.gif", "class": "pickerActionButton",
"border": 0, "title": "Add", "alt": "Add"});
"border": 0, "title": this.addLabel, "alt": this.addLabel});
actionImg.injectInside(actionLink);
actionLink.injectInside(actionsSpan);