mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
xforms dojo to mootools port.
- ported xforms javascript codebase to mootools. mostly complete - a few dangling effects and dom manipulation functions still use dojo. these should be removed at which point it will no longer be necessary to load dojo.js which should save a second or so on load time. a few of the date widgets and slider still use dojo widgets. this can probably stay as dojo can be loaded only if those widgets are used. - performance tuning of xforms js codebase. about %40 improvement in load time for large forms with lots of widgets. - switching wizards into almost standards compliance mode so that things will lay out properly in IE. - lots of layout cleanup and off by pixel issues, particularly for IE. - putting in an uncompressed version of mootools which includes some libraries needed by xforms - particularly all native objects, Element.Event, Window.DomReady, XHR and Ajax. at some point dojo effects should likely be replaced with those in mootools. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6903 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -247,27 +247,25 @@ _selectPathInput_changeHandler: function(event)
|
||||
|
||||
_navigateToNode: function(path)
|
||||
{
|
||||
var req = alfresco.AjaxHelper.createRequest(this,
|
||||
"FilePickerBean.getFilePickerData",
|
||||
{},
|
||||
function(type, data, evt)
|
||||
{
|
||||
this.target._showPicker(data.documentElement);
|
||||
});
|
||||
req.content.currentPath = path;
|
||||
var params = { currentPath: path};
|
||||
if (this.selectableTypes)
|
||||
{
|
||||
req.content.selectableTypes = this.selectableTypes;
|
||||
params.selectableTypes = this.selectableTypes;
|
||||
}
|
||||
if (this.filterMimetypes)
|
||||
{
|
||||
req.content.filterMimetypes = this.filterMimetypes;
|
||||
params.filterMimetypes = this.filterMimetypes;
|
||||
}
|
||||
alfresco.AjaxHelper.sendRequest(req);
|
||||
|
||||
alfresco.AjaxHelper.sendRequest("FilePickerBean.getFilePickerData",
|
||||
params,
|
||||
true,
|
||||
this._showPicker.bindAsEventListener(this));
|
||||
},
|
||||
|
||||
_showPicker: function(data)
|
||||
{
|
||||
data = data.documentElement;
|
||||
while (this.node.hasChildNodes() &&
|
||||
this.node.lastChild != this.statusDiv)
|
||||
{
|
||||
@@ -444,7 +442,7 @@ _showPicker: function(data)
|
||||
var childNodes = data.getElementsByTagName("child-node");
|
||||
for (var i = 0; i < childNodes.length; i++)
|
||||
{
|
||||
if (childNodes[i].nodeType != dojo.dom.ELEMENT_NODE)
|
||||
if (childNodes[i].nodeType != document.ELEMENT_NODE)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user