Refactoring/rewrite of modal boxes handling
This commit is contained in:
@@ -74,8 +74,6 @@ KB.component('task-move-position', function (containerElement, options) {
|
||||
"column_id": getColumnId(),
|
||||
"swimlane_id": getSwimlaneId(),
|
||||
"position": position
|
||||
}).success(function () {
|
||||
window.location.reload(true);
|
||||
}).error(function (response) {
|
||||
if (response) {
|
||||
onError(response.message);
|
||||
@@ -150,7 +148,6 @@ KB.component('task-move-position', function (containerElement, options) {
|
||||
KB.on('modal.submit', onSubmit);
|
||||
|
||||
var form = KB.dom('div')
|
||||
.on('submit', onSubmit)
|
||||
.add(KB.dom('div').attr('id', 'message-container').build())
|
||||
.add(KB.html.label(options.swimlaneLabel, 'form-swimlanes'))
|
||||
.add(buildSwimlaneSelect())
|
||||
|
||||
Reference in New Issue
Block a user