increased click area for checkin
This commit is contained in:
parent
7a34f64eba
commit
f01f108f94
3 changed files with 16 additions and 10 deletions
|
@ -65,7 +65,13 @@ function odelay(sched, rt) {
|
||||||
|
|
||||||
function tvly_run(link, req, err_callback) {
|
function tvly_run(link, req, err_callback) {
|
||||||
var error_icon = '<i class="material-icons">error</i>';
|
var error_icon = '<i class="material-icons">error</i>';
|
||||||
var progressbar = $('<div class="progress"><div class="indeterminate"></div></div>');
|
var progressbar;
|
||||||
|
if (link.data('tr')) {
|
||||||
|
progressbar = $('<tr><td colspan="' + link.data('tr') + '"><div class="progress"><div class="indeterminate"></div></div></td></tr>');
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
progressbar = $('<div class="progress"><div class="indeterminate"></div></div>');
|
||||||
|
}
|
||||||
link.hide();
|
link.hide();
|
||||||
link.after(progressbar);
|
link.after(progressbar);
|
||||||
$.post('/action', req, function(data) {
|
$.post('/action', req, function(data) {
|
||||||
|
|
|
@ -7,10 +7,10 @@
|
||||||
% $td_class = 'cancelled';
|
% $td_class = 'cancelled';
|
||||||
% $link_class = 'action-cancelled-from';
|
% $link_class = 'action-cancelled-from';
|
||||||
% }
|
% }
|
||||||
<tr>
|
<tr class="<%= $link_class %>" data-station="<%= $train->station_uic %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>">
|
||||||
<td class="<%= $td_class %>">
|
<td class="<%= $td_class %>">
|
||||||
% if ($checkin_from) {
|
% if ($checkin_from) {
|
||||||
<a class="<%= $link_class %>" data-station="<%= $train->station_uic %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>"><%= $train->line %></a>
|
<a><%= $train->line %></a>
|
||||||
% }
|
% }
|
||||||
% else {
|
% else {
|
||||||
%= $train->line
|
%= $train->line
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
</td>
|
</td>
|
||||||
<td class="<%= $td_class %>">
|
<td class="<%= $td_class %>">
|
||||||
% if ($checkin_from) {
|
% if ($checkin_from) {
|
||||||
<a class="<%= $link_class %>" data-station="<%= $train->station_uic %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>"><%= $via %></a>
|
<a><%= $via %></a>
|
||||||
% }
|
% }
|
||||||
% else {
|
% else {
|
||||||
%= $via
|
%= $via
|
||||||
|
@ -70,10 +70,10 @@
|
||||||
% $td_class = 'cancelled';
|
% $td_class = 'cancelled';
|
||||||
% $link_class = 'action-cancelled-from';
|
% $link_class = 'action-cancelled-from';
|
||||||
% }
|
% }
|
||||||
<tr>
|
<tr class="<%= $link_class %>" data-station="<%= $train->station_uic %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>" data-tr="4">
|
||||||
<td class="<%= $td_class %>">
|
<td class="<%= $td_class %>">
|
||||||
% if ($checkin_from) {
|
% if ($checkin_from) {
|
||||||
<a class="<%= $link_class %>" data-station="<%= $train->station_uic %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>"><%= $train->line %></a>
|
<a><%= $train->line %></a>
|
||||||
% }
|
% }
|
||||||
% else {
|
% else {
|
||||||
%= $train->line
|
%= $train->line
|
||||||
|
@ -81,7 +81,7 @@
|
||||||
</td>
|
</td>
|
||||||
<td class="<%= $td_class %>">
|
<td class="<%= $td_class %>">
|
||||||
% if ($checkin_from) {
|
% if ($checkin_from) {
|
||||||
<a class="<%= $link_class %>" data-station="<%= $train->station_uic %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>"><%= $via %></a>
|
<a><%= $via %></a>
|
||||||
% }
|
% }
|
||||||
% else {
|
% else {
|
||||||
%= $via
|
%= $via
|
||||||
|
|
|
@ -86,14 +86,14 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
% }
|
% }
|
||||||
<tr>
|
<tr class="<%= $link_class %>" data-station="<%= $result->station_uic %>" data-train="<%= $result->train_id %>" data-tr="3">
|
||||||
<td>
|
<td>
|
||||||
<a class="<%= $link_class %>" data-station="<%= $result->station_uic %>" data-train="<%= $result->train_id %>">
|
<a>
|
||||||
<%= $result->line %>
|
<%= $result->line %>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td class="<%= $td_class %>">
|
<td class="<%= $td_class %>">
|
||||||
<a class="<%= $link_class %>" data-station="<%= $result->station_uic %>" data-train="<%= $result->train_id %>">
|
<a>
|
||||||
<%= $result->destination %>
|
<%= $result->destination %>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in a new issue