Skip to content

Commit 4500ca8

Browse files
committed
double submit removal
1 parent f9466ea commit 4500ca8

File tree

2 files changed

+2
-24
lines changed

2 files changed

+2
-24
lines changed

Assets/js/group_assign.js

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -29,29 +29,7 @@ Kanboard.App.prototype.grpAutoComplete = function() {
2929
}
3030

3131
function submitForm() {
32-
var form = getForm();
33-
34-
if (form) {
35-
var url = form.getAttribute('action');
36-
37-
if (url) {
38-
KB.http.postForm(url, form).success(function (response) {
39-
KB.trigger('modal.stop');
40-
41-
if (response) {
42-
replace(response);
43-
} else {
44-
destroy();
45-
}
46-
}).error(function (response) {
47-
KB.trigger('modal.stop');
48-
49-
if (response.hasOwnProperty('message')) {
50-
window.alert(response.message);
51-
}
52-
});
53-
}
54-
}
32+
5533
}
5634

5735
function afterRendering() {

Helper/NewTaskHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public function renderMultiAssigneeField(array $users, array $values, array $err
136136
return '';
137137
}
138138

139-
$attributes = array_merge(array('tabindex="4"'), $attributes);
139+
$attributes = array_merge(array(), $attributes);
140140
$name = 'owner_ms';
141141

142142
$html = $this->helper->form->label(t('Other Assignees'), $name.'[]');

0 commit comments

Comments
 (0)