Merged V2.0 to HEAD

5144:  Original HEAD revision 5141 that was reverted
      WCM-317
      WCM-302
      WCM-333
      WCM-270
      WCM-312
      WCM-305
      WCM-298


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5326 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2007-03-07 11:46:17 +00:00
parent ea2b5dd643
commit 0671335628
19 changed files with 338 additions and 62 deletions

View File

@@ -742,6 +742,7 @@ dojo.declare("alfresco.xforms.NumericalRange",
_hSlider_valueChangedHandler: function(value)
{
value = Math.round(value * Math.pow(10, this.fractionDigits)) / Math.pow(10, this.fractionDigits);
this.currentValueDiv.replaceChild(document.createTextNode("Value: " + value),
this.currentValueDiv.firstChild);
if (!this.widget._isDragInProgress)
@@ -2309,6 +2310,11 @@ dojo.declare("alfresco.xforms.ViewRoot",
this.focusedRepeat = null;
},
{
/////////////////////////////////////////////////////////////////
// overridden methods & properties
/////////////////////////////////////////////////////////////////
render: function(attach_point)
{
this.domNode.widget = this;
@@ -2336,6 +2342,14 @@ dojo.declare("alfresco.xforms.ViewRoot",
this.domNode.childContainerNode.style.width = "100%";
return this.domNode;
},
/** */
getLabel: function()
{
var result = alfresco.xforms.ViewRoot.superclass.getLabel.call(this);
result += " " + alfresco_xforms_constants.FORM_INSTANCE_DATA_NAME;
return result;
}
});
@@ -3121,8 +3135,9 @@ dojo.declare("alfresco.xforms.Binding",
(_hasAttribute(this.xformsNode, alfresco_xforms_constants.XFORMS_PREFIX + ":constraint")
? this.xformsNode.getAttribute(alfresco_xforms_constants.XFORMS_PREFIX + ":constraint")
: null);
this.maximum = parseInt(this.xformsNode.getAttribute(alfresco_xforms_constants.ALFRESCO_PREFIX + ":maximum"));
this.minimum = parseInt(this.xformsNode.getAttribute(alfresco_xforms_constants.ALFRESCO_PREFIX + ":minimum"));
this.maximum = this.xformsNode.getAttribute(alfresco_xforms_constants.XFORMS_PREFIX + ":maxOccurs");
this.maximum = this.maximum == "unbounded" ? Number.MAX_VALUE : parseInt(this.maximum);
this.minimum = parseInt(this.xformsNode.getAttribute(alfresco_xforms_constants.XFORMS_PREFIX + ":minOccurs"));
this.parent = parent;
this.widgets = {};
},