adding support for wcm tinymce extensions to create html from web content wizard

- extracted file picker backing code into its own bean
- refactoring for to extract file picker bean
- refactoring to manage uploads from file picker outside of xforms context
- added some language utility methods to common.js
- refactored extension dialogs to deal with quirkyness of tinymce dialog codebase on IE - mostly works now and addressed bug WCM-471
- resourcifying a couple strings i missed in filepickerbean

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5675 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ariel Backenroth
2007-05-14 22:03:10 +00:00
parent bd54cd2401
commit df32d0ddf1
18 changed files with 615 additions and 411 deletions

View File

@@ -3944,7 +3944,7 @@ dojo.declare("alfresco.xforms.XForm",
function()
{
var req = alfresco.AjaxHelper.createRequest(this,
"getXForm",
"XFormsBean.getXForm",
{},
function(type, data, evt, kwArgs)
{
@@ -4134,7 +4134,7 @@ dojo.declare("alfresco.xforms.XForm",
};
var req = alfresco.AjaxHelper.createRequest(this,
"swapRepeatItems",
"XFormsBean.swapRepeatItems",
params,
function(type, data, event)
{
@@ -4156,7 +4156,7 @@ dojo.declare("alfresco.xforms.XForm",
}
params.repeatIds = params.repeatIds.join(",");
var req = alfresco.AjaxHelper.createRequest(this,
"setRepeatIndeces",
"XFormsBean.setRepeatIndeces",
params,
function(type, data, evt)
{
@@ -4169,7 +4169,7 @@ dojo.declare("alfresco.xforms.XForm",
fireAction: function(id)
{
var req = alfresco.AjaxHelper.createRequest(this,
"fireAction",
"XFormsBean.fireAction",
{ id: id },
function(type, data, evt)
{
@@ -4185,7 +4185,7 @@ dojo.declare("alfresco.xforms.XForm",
value = value == null ? "" : value;
dojo.debug("setting value " + id + " = " + value);
var req = alfresco.AjaxHelper.createRequest(this,
"setXFormsValue",
"XFormsBean.setXFormsValue",
{ id: id, value: value },
function(type, data, evt)
{
@@ -4472,7 +4472,7 @@ function _show_error(msg)
}
////////////////////////////////////////////////////////////////////////////////
// DOM utilities
// DOM utilities - XXXarielb should be merged into common.js
////////////////////////////////////////////////////////////////////////////////
function _findElementById(node, id)
@@ -4596,36 +4596,6 @@ if (!XPathResult)
FIRST_ORDERED_NODE_TYPE: 9
};
}
if (!String.prototype.startsWith)
{
String.prototype.startsWith = function(s)
{
return this.indexOf(s) == 0;
}
}
if (!Array.prototype.indexOf)
{
Array.prototype.indexOf = function(o)
{
for (var i = 0; i < this.length; i++)
{
if (this[i] == o)
{
return i;
}
}
return -1;
}
}
if (!Array.prototype.peek)
{
Array.prototype.peek = function(o)
{
return this[this.length - 1];
}
}
dojo.html.toCamelCase = function(str)
{