projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
epic-ts
[kivitendo-erp.git]
/
js
/
kivi.TimeRecording.js
diff --git
a/js/kivi.TimeRecording.js
b/js/kivi.TimeRecording.js
index
b897b76
..
710f272
100644
(file)
--- a/
js/kivi.TimeRecording.js
+++ b/
js/kivi.TimeRecording.js
@@
-21,7
+21,10
@@
namespace('kivi.TimeRecording', function(ns) {
$time.val(kivi.format_time(date));
};
$time.val(kivi.format_time(date));
};
+ var order_changed_called;
ns.order_changed = function(value) {
ns.order_changed = function(value) {
+ order_changed_called = true;
+
if (!value) {
$('#time_recording_customer_id').data('customer_vendor_picker').set_item({});
$('#time_recording_customer_id_name').prop('disabled', false);
if (!value) {
$('#time_recording_customer_id').data('customer_vendor_picker').set_item({});
$('#time_recording_customer_id_name').prop('disabled', false);
@@
-41,7
+44,12
@@
namespace('kivi.TimeRecording', function(ns) {
});
};
});
};
- ns.project_changed = function() {
+ ns.project_changed = function(event) {
+ if (order_changed_called) {
+ order_changed_called = false;
+ return;
+ }
+
var project_id = $('#time_recording_project_id').val();
if (!project_id) {
var project_id = $('#time_recording_project_id').val();
if (!project_id) {