anchor.diff:                              '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(","));
  +                        saveSelectedValues();
                       });
                       $('#${field}CollectionContainerSearchInput').keyup(function (e) {
                           if (to) {
  
positive.code: <script type="text/javascript" src="${cp}jpm/security/i18n.js?v=${jpm.appversion}"></script>
  <script type="text/javascript">
      var to = false;
      jpmLoad(function () {
          var readonly = ${param.readonly};
          var ids = "${param.value}".split(",");
  
negative.code:                         e.preventDefault();
                      });
                  });
                  saveSelectedValues();
              });
              $("#${field}CollectionContainerSearchInput").keypress(function (e) {
                  if (e.which === 13) {
  