diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-04-29 15:50:22 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-05-06 12:58:27 -0400 |
commit | 5ef8bd33d03947528979540c6f7013c2b4c2a4ce (patch) | |
tree | 45c92e181b315a206dda096040d917346bb15d7a /app | |
parent | bc14d223a781322d672ca54d7afa946532b66d56 (diff) | |
download | gitlab-ce-5ef8bd33d03947528979540c6f7013c2b4c2a4ce.tar.gz |
Remove taskable.js
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/behaviors/taskable.js.coffee | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/app/assets/javascripts/behaviors/taskable.js.coffee b/app/assets/javascripts/behaviors/taskable.js.coffee deleted file mode 100644 index ddce71c1886..00000000000 --- a/app/assets/javascripts/behaviors/taskable.js.coffee +++ /dev/null @@ -1,21 +0,0 @@ -window.updateTaskState = (taskableType) -> - objType = taskableType.data - isChecked = $(this).prop("checked") - if $(this).is(":checked") - stateEvent = "task_check" - else - stateEvent = "task_uncheck" - - taskableUrl = $("form.edit-" + objType).first().attr("action") - taskableNum = taskableUrl.match(/\d+$/) - taskNum = 0 - $("li.task-list-item input:checkbox").each( (index, e) => - if e == this - taskNum = index + 1 - ) - - $.ajax - type: "PATCH" - url: taskableUrl - data: objType + "[state_event]=" + stateEvent + - "&" + objType + "[task_num]=" + taskNum |