[minor] cleanups

This commit is contained in:
Rushabh Mehta
2016-06-10 12:34:41 +05:30
parent d395c7d54e
commit e0686b32f3
7 changed files with 32 additions and 17 deletions

View File

@@ -8,12 +8,12 @@ frappe.ui.form.on("Issue", {
frm.add_custom_button(__("Close"), function() {
frm.set_value("status", "Closed");
frm.save();
}, __("Status"));
});
} else {
frm.add_custom_button(__("Reopen"), function() {
frm.set_value("status", "Open");
frm.save();
}, __("Status"));
});
}
}
});