fix: Progress bar style

This commit is contained in:
Suraj Shetty 2020-12-10 22:45:27 +05:30
parent 39154e5296
commit c9209237da

View File

@ -43,7 +43,7 @@ frappe.ui.form.on('Fee Schedule', {
frm.reload_doc();
}
if (data.progress) {
let progress_bar = $(cur_frm.dashboard.progress_area).find('.progress-bar');
let progress_bar = $(cur_frm.dashboard.progress_area.body).find('.progress-bar');
if (progress_bar) {
$(progress_bar).removeClass('progress-bar-danger').addClass('progress-bar-success progress-bar-striped');
$(progress_bar).css('width', data.progress+'%');