projects
/
misc
/
hallinta-metro
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9c056b5
)
Select preis if date is available already
author
Joey Schulze
<joey@infodrom.org>
Sat, 19 Jan 2013 20:11:03 +0000
(21:11 +0100)
committer
Joey Schulze
<joey@infodrom.org>
Sat, 19 Jan 2013 20:11:03 +0000
(21:11 +0100)
artikel.php
patch
|
blob
|
history
diff --git
a/artikel.php
b/artikel.php
index
d18a219
..
e26008d
100644
(file)
--- a/
artikel.php
+++ b/
artikel.php
@@
-50,7
+50,11
@@
function price_popup_open()
artikel.value = form_id.value;
var datum = document.getElementById('form_datum');
artikel.value = form_id.value;
var datum = document.getElementById('form_datum');
- datum.activate();
+ var preis = document.getElementById('form_preis');
+ if (datum.value.length)
+ preis.activate();
+ else
+ datum.activate();
}
function open_popup()
}
function open_popup()