* Mail: fixed sometimes not working (un)subscribe of mailboxes, added better diagnostic and automatic (de)select children

This commit is contained in:
Ralf Becker
2014-08-15 11:22:43 +00:00
parent 49f9086420
commit e47db95be7
8 changed files with 133 additions and 133 deletions

View File

@ -818,6 +818,19 @@ var et2_tree = et2_inputWidget.extend(
}
},
/**
* Set state of node incl. it's children
*
* @param {string} _id id of node
* @param {boolean|string} _state or "toggle" to toggle state
*/
setSubChecked: function(_id, _state)
{
if (_state === "toggle") _state = !this.input.isItemChecked(_id);
this.input.setSubChecked(_id, _state);
},
/**
* Get URL relative to image_path option
*