Add and delete new folders to the list to be synchronised

Write a php code for adding and removing device folder from device.
Write a js code for adding and removing folder into store while user select / deselect folder
This commit is contained in:
csoni
2017-09-13 17:42:57 +05:30
parent 41cc4f675d
commit 6bc2a9788c
12 changed files with 658 additions and 254 deletions

View File

@ -38,6 +38,25 @@ Zarafa.plugins.mdm.ui.MDMHierarchyTreePanel = Ext.extend(Zarafa.hierarchy.ui.Tre
// call parent
Zarafa.plugins.mdm.ui.MDMHierarchyTreePanel.superclass.initComponent.apply(this, arguments);
},
/**
* The filter which is applied for filtering nodes from the
* {@link Zarafa.hierarchy.ui.Tree HierarchyTree}.
* It will hide own user store.
*
* @param {Object} folder the folder to filter
* @return {Boolean} true to accept the folder
*/
nodeFilter: function (folder)
{
var hide = Zarafa.plugins.mdm.ui.MDMHierarchyTreePanel.superclass.nodeFilter.apply(this, arguments);
if(hide && this.hideOwnTree) {
hide = !folder.getMAPIStore().isDefaultStore();
}
return hide;
}
});