ni55an

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<table>
<thead>
<tr>
<th>ID</th>
<th>Name</th>
<th>Desc</th>
<th>Active</th>
<th>Status</th>
<th colspan="3"></th>
</tr>
</thead>
<tr>
<td>14</td>
<td>fasdf</td>
<td>asdfasdfasdf</td>
<td>false</td>
<td>
<form accept-charset="UTF-8" action="http://localhost:3000/tasks/14" class="edit_task" data-remote="true" id="edit_task_14" method="post"><div style="display:none"><input name="utf8" type="hidden" value="&#x2713;" /><input name="_method" type="hidden" value="patch" /><input name="authenticity_token" type="hidden" value="ZaYO3cMXj+hRwK4cB3KcdEGU5ZUF8ngavaNA7nj86x8=" /></div>
<select id="task_status" name="task[status]"><option value="DONE">DONE</option>
<option value="WAIT">WAIT</option>
<option selected="selected" value="FAIL">FAIL</option>
<option value="PROBLEM">PROBLEM</option></select>
<img alt="Task Fail" height="16" src="/assets/fail.png" width="16" />
</form> </td>
<td><a href="/tasks/14">Show</a></td>
<td><a href="/tasks/14/edit">Edit</a></td>
<td><a data-confirm="Are you sure?" data-method="delete" href="/tasks/14" rel="nofollow">Destroy</a></td>
</tr>
<tr>
<td>15</td>
<td>asdg</td>
<td>asdfasdfa3fawef3</td>
<td>false</td>
<td>
<form accept-charset="UTF-8" action="http://localhost:3000/tasks/15" class="edit_task" data-remote="true" id="edit_task_15" method="post"><div style="display:none"><input name="utf8" type="hidden" value="&#x2713;" /><input name="_method" type="hidden" value="patch" /><input name="authenticity_token" type="hidden" value="ZaYO3cMXj+hRwK4cB3KcdEGU5ZUF8ngavaNA7nj86x8=" /></div>
<select id="task_status" name="task[status]"><option value="">Select a task type</option>
<option value="DONE">DONE</option>
<option value="WAIT">WAIT</option>
<option value="FAIL">FAIL</option>
<option value="PROBLEM">PROBLEM</option></select>
</form>
</td>
<td><a href="/tasks/15">Show</a></td>
<td><a href="/tasks/15/edit">Edit</a></td>
<td><a data-confirm="Are you sure?" data-method="delete" href="/tasks/15" rel="nofollow">Destroy</a></td>
</tr>
<tr>
<td>16</td>
<td>2352</td>
<td>erwer</td>
<td>false</td>
<td>
<form accept-charset="UTF-8" action="http://localhost:3000/tasks/16" class="edit_task" data-remote="true" id="edit_task_16" method="post"><div style="display:none"><input name="utf8" type="hidden" value="&#x2713;" /><input name="_method" type="hidden" value="patch" /><input name="authenticity_token" type="hidden" value="ZaYO3cMXj+hRwK4cB3KcdEGU5ZUF8ngavaNA7nj86x8=" /></div>
<select id="task_status" name="task[status]"><option value="">Select a task type</option>
<option value="DONE">DONE</option>
<option value="WAIT">WAIT</option>
<option value="FAIL">FAIL</option>
<option value="PROBLEM">PROBLEM</option></select>
</form> </td>
<td><a href="/tasks/16">Show</a></td>
<td><a href="/tasks/16/edit">Edit</a></td>
<td><a data-confirm="Are you sure?" data-method="delete" href="/tasks/16" rel="nofollow">Destroy</a></td>
</tr>
<tr>
<td>17</td>
<td>3434213</td>
<td>sadfsadfasdf</td>
<td>false</td>
<td>
<form accept-charset="UTF-8" action="http://localhost:3000/tasks/17" class="edit_task" data-remote="true" id="edit_task_17" method="post"><div style="display:none"><input name="utf8" type="hidden" value="&#x2713;" /><input name="_method" type="hidden" value="patch" /><input name="authenticity_token" type="hidden" value="ZaYO3cMXj+hRwK4cB3KcdEGU5ZUF8ngavaNA7nj86x8=" /></div>
<select id="task_status" name="task[status]"><option value="">Select a task type</option>
<option value="DONE">DONE</option>
<option value="WAIT">WAIT</option>
<option value="FAIL">FAIL</option>
<option value="PROBLEM">PROBLEM</option></select>
</form>
</td>
<td><a href="/tasks/17">Show</a></td>
<td><a href="/tasks/17/edit">Edit</a></td>
<td><a data-confirm="Are you sure?" data-method="delete" href="/tasks/17" rel="nofollow">Destroy</a></td>
</tr>
<tr>
<td>18</td>
<td>2145</td>
<td>r234ertwera</td>
<td>false</td>
<td>
<form accept-charset="UTF-8" action="http://localhost:3000/tasks/18" class="edit_task" data-remote="true" id="edit_task_18" method="post"><div style="display:none"><input name="utf8" type="hidden" value="&#x2713;" /><input name="_method" type="hidden" value="patch" /><input name="authenticity_token" type="hidden" value="ZaYO3cMXj+hRwK4cB3KcdEGU5ZUF8ngavaNA7nj86x8=" /></div>
<select id="task_status" name="task[status]"><option value="">Select a task type</option>
<option value="DONE">DONE</option>
<option value="WAIT">WAIT</option>
<option value="FAIL">FAIL</option>
<option value="PROBLEM">PROBLEM</option></select>
</form>
</td>
<td><a href="/tasks/18">Show</a></td>
<td><a href="/tasks/18/edit">Edit</a></td>
<td><a data-confirm="Are you sure?" data-method="delete" href="/tasks/18" rel="nofollow">Destroy</a></td>
</tr>
<tbody>
</tbody>
</table>
## JS CODE
$(document).ready(function() {
return $('#task_status').change(function() {
return this.form.submit();
});
});