mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix initial focus on /tasks/create
This commit is contained in:
parent
1ac32c13a7
commit
57830316ad
@ -443,12 +443,6 @@
|
|||||||
ko.applyBindings(model);
|
ko.applyBindings(model);
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
@if (!$task && !$clientPublicId)
|
|
||||||
$('.client-select input.form-control').focus();
|
|
||||||
@else
|
|
||||||
$('#description').focus();
|
|
||||||
@endif
|
|
||||||
|
|
||||||
$('input[type=radio]').change(function(event) {
|
$('input[type=radio]').change(function(event) {
|
||||||
var val = $(event.target).val();
|
var val = $(event.target).val();
|
||||||
if (val == 'timer') {
|
if (val == 'timer') {
|
||||||
@ -595,6 +589,12 @@
|
|||||||
} else {
|
} else {
|
||||||
$clientSelect.trigger('change');
|
$clientSelect.trigger('change');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@if (!$task && !$clientPublicId)
|
||||||
|
$('.client-select input.form-control').focus();
|
||||||
|
@else
|
||||||
|
$('#description').focus();
|
||||||
|
@endif
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user