Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- onSelectFilterPath: function getLatestDoc_onSelectFilterPath(e)
- {
- if (!this.widgets.filterPathDialog)
- {
- this.widgets.filterPathDialog = new Alfresco.module.DoclibGlobalFolder(this.id + "-selectFilterPath");
- var allowedViewModes =
- [
- Alfresco.module.DoclibGlobalFolder.VIEW_MODE_REPOSITORY
- ];
- this.widgets.filterPathDialog.setOptions(
- {
- allowedViewModes: allowedViewModes,
- siteId: this.options.siteId,
- containerId: this.options.containerId,
- title: "Configure",
- nodeRef: "alfresco://company/home"
- });
- YAHOO.Bubbling.on("folderSelected", function (layer, args) {
- var obj = args[1];
- if (obj !== null) {
- this.widgets.filterPathView.innerHTML = obj.selectedFolder.path;
- this.widgets.filterPathField.value = obj.selectedFolder.nodeRef + "|" + obj.selectedFolder.path;
- this.widgets
- }
- }, this);
- }
- var pathNodeRef = this.widgets.filterPathField.value.split("|")[0];
- this.widgets.filterPathDialog.setOptions({
- pathNodeRef: pathNodeRef ? new Alfresco.util.NodeRef(pathNodeRef) : null
- });
- // Show the dialog
- this.widgets.filterPathDialog.showDialog();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement