Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
668 B
JavaScript
Raw Normal View History

2021-06-20 12:42:06 +05:30
frappe.pages['organizational-chart'].on_page_load = function(wrapper) {
frappe.ui.make_app_page({
parent: wrapper,
title: __('Organizational Chart'),
single_column: true
});
$(wrapper).bind('show', () => {
frappe.require('hierarchy-chart.bundle.js', () => {
let organizational_chart = undefined;
let method = 'erpnext.hr.page.organizational_chart.organizational_chart.get_children';
if (frappe.is_mobile()) {
2021-06-29 21:51:21 +05:30
organizational_chart = new erpnext.HierarchyChartMobile('Employee', wrapper, method);
2021-06-21 21:55:50 +05:30
} else {
2021-06-29 21:51:21 +05:30
organizational_chart = new erpnext.HierarchyChart('Employee', wrapper, method);
2021-06-21 21:55:50 +05:30
}
organizational_chart.show();
});
});
};