{*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
}
</style>
<script type="text/javascript">
- cj(function () {
+ CRM.$(function($) {
cj("#navigation-tree").jstree({
plugins : [ "themes", "json_data", "dnd","ui", "crrm","contextmenu" ],
json_data : {
});
});
});
- cj('#new-menu-item a.button').click(function() {
- CRM.loadForm(this.href).on('crmFormSuccess', function() {
- cj("#navigation-tree").jstree('refresh');
- cj("#reset-menu").show( );
+ $('#new-menu-item a.button')
+ .on('click', CRM.popup)
+ .on('crmPopupFormSuccess', function() {
+ $("#navigation-tree").jstree('refresh');
+ $("#reset-menu").show();
});
- return false;
- })
});
</script>
{/literal}