mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
fixing some issues with the ie porting.
- loading... graphics now shows up - fixed checkbox default values. checkbox wants to be appended to the DOM before it shows up. - fixed problem with broken extra image in repeats - fixed problem with undefined showing up in combobox entries git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4057 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -309,8 +309,8 @@ dojo.declare("alfresco.xforms.TextArea",
|
||||
{
|
||||
this.domNode = document.createElement("div");
|
||||
attach_point.appendChild(this.domNode);
|
||||
this.domNode.setAttribute("style", "height: 200px; border: solid 1px black;");
|
||||
this.domNode.setAttribute("id", this.id);
|
||||
this.domNode.style.height = "200px";
|
||||
this.domNode.innerHTML = this.getInitialValue() || "";
|
||||
tinyMCE.addMCEControl(this.domNode, this.id);
|
||||
this.widget = this.domNode;
|
||||
@@ -372,7 +372,7 @@ dojo.declare("alfresco.xforms.Select",
|
||||
var initial_value = this.getInitialValue();
|
||||
if (values.length <= 5)
|
||||
{
|
||||
for (var i in values)
|
||||
for (var i = 0; i < values.length; i++)
|
||||
{
|
||||
this.widget = document.createElement("span");
|
||||
attach_point.appendChild(this.widget);
|
||||
@@ -395,7 +395,7 @@ dojo.declare("alfresco.xforms.Select",
|
||||
this.widget.setAttribute("id", this.id + "-widget");
|
||||
this.widget.setAttribute("multiple", true);
|
||||
attach_point.appendChild(this.widget);
|
||||
for (var i in values)
|
||||
for (var i = 0; i < values.length; i++)
|
||||
{
|
||||
var option = document.createElement("option");
|
||||
option.appendChild(document.createTextNode(values[i].label));
|
||||
@@ -448,7 +448,7 @@ dojo.declare("alfresco.xforms.Select1",
|
||||
var initial_value = this.getInitialValue();
|
||||
if (values.length <= 5)
|
||||
{
|
||||
for (var i in values)
|
||||
for (var i = 0; i < values.length; i++)
|
||||
{
|
||||
this.widget = document.createElement("span");
|
||||
this.widget.style.width = "100%";
|
||||
@@ -470,7 +470,7 @@ dojo.declare("alfresco.xforms.Select1",
|
||||
this.widget = document.createElement("select");
|
||||
this.widget.setAttribute("id", this.id + "-widget");
|
||||
attach_point.appendChild(this.widget);
|
||||
for (var i in values)
|
||||
for (var i = 0; i < values.length; i++)
|
||||
{
|
||||
var option = document.createElement("option");
|
||||
option.appendChild(document.createTextNode(values[i].label));
|
||||
@@ -507,9 +507,10 @@ dojo.declare("alfresco.xforms.Checkbox",
|
||||
this.widget = document.createElement("input");
|
||||
this.widget.setAttribute("type", "checkbox");
|
||||
this.widget.setAttribute("id", this.id + "-widget");
|
||||
attach_point.appendChild(this.widget);
|
||||
|
||||
if (initial_value)
|
||||
this.widget.setAttribute("checked", true);
|
||||
attach_point.appendChild(this.widget);
|
||||
dojo.event.connect(this.widget, "onclick", this, this._checkbox_clickHandler);
|
||||
},
|
||||
_checkbox_clickHandler: function(event)
|
||||
@@ -704,7 +705,7 @@ dojo.declare("alfresco.xforms.Repeat",
|
||||
{ src: "arrow_down", action: this._moveRepeatItemDown_handler },
|
||||
{ src: "minus", action: this._removeRepeatItem_handler }
|
||||
];
|
||||
for (var i in images)
|
||||
for (var i = 0; i < images.length; i++)
|
||||
{
|
||||
var img = document.createElement("img");
|
||||
img.setAttribute("src", (WEBAPP_CONTEXT + "/images/icons/" +
|
||||
@@ -1401,7 +1402,11 @@ function _get_ajax_loader_element()
|
||||
return result;
|
||||
result = document.createElement("div");
|
||||
result.setAttribute("id", "alf-ajax-loader");
|
||||
result.setAttribute("style", "position: absolute; background-color: red; color: white; top: 0px; right: 0px;");
|
||||
result.style.position = "absolute";
|
||||
result.style.right = "0px";
|
||||
result.style.top = "0px";
|
||||
result.style.color = "white";
|
||||
result.style.backgroundColor = "red";
|
||||
dojo.style.hide(result);
|
||||
document.body.appendChild(result);
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user