anchor.diff:  <script type="text/javascript" src="${cp}jpm/security/i18n.js?v=${jpm.appversion}"></script>
   <script type="text/javascript">
       var to = false;
  +    function saveSelectedValues() {
  +        var selectedElmsIds = [];
  +        var selectedElms = $('#editAuthTree').jstree("get_selected", true);
  +        $.each(selectedElms, function (i, node) {
  +            if (node.children.length === 0) {
  +                selectedElmsIds.push(this.id);
  +            }
  +        });
  +        $('#field_${field}').val(selectedElmsIds.join(","));
  +    }
       jpmLoad(function () {
           var readonly = ${param.readonly};
           var ids = "${param.value}".split(",");
  
positive.code:                             'data': root
                          }
                      }).on('changed.jstree', function (e, data) {
                          var selectedElmsIds = [];
                          var selectedElms = $('#editAuthTree').jstree("get_selected", true);
                          $.each(selectedElms, function (i, node) {
                              if (node.children.length === 0) {
                                  selectedElmsIds.push(this.id);
                              }
                          });
                          $('#field_${field}').val(selectedElmsIds.join(","));
                      });
                      $('#${field}CollectionContainerSearchInput').keyup(function (e) {
                          if (to) {
  
negative.code:                         e.preventDefault();
                      });
                  });
                  saveSelectedValues();
              });
              $("#${field}CollectionContainerSearchInput").keypress(function (e) {
                  if (e.which === 13) {
  