mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Re-enabled "show all button" after bootstrap.js is removed in Sidekiq UI.
This commit is contained in:
parent
c1a5a322ac
commit
e442b837b9
3 changed files with 6 additions and 2 deletions
|
@ -37,4 +37,8 @@ $(function() {
|
|||
$(document).on("click", "[data-confirm]", function() {
|
||||
return confirm($(this).attr('data-confirm'));
|
||||
});
|
||||
|
||||
$(document).on("click", "[data-toggle]", function() {
|
||||
$($(this).attr('data-target')).toggle();
|
||||
});
|
||||
});
|
||||
|
|
|
@ -15,7 +15,7 @@ table class="workers table table-hover table-bordered table-striped table-white"
|
|||
- if msg['payload']['args'].to_s.size > 100
|
||||
= msg['payload']['args'].inspect[0..100] + "... "
|
||||
button data-toggle="collapse" data-target="#worker_#{index}" class="btn btn-mini" Show All
|
||||
.collapse[id="worker_#{index}" style="max-width: 750px;"]= msg['payload']['args']
|
||||
.toggle[id="worker_#{index}" style="display: none;max-width: 750px;"]= msg['payload']['args']
|
||||
- else
|
||||
= msg['payload']['args']
|
||||
td== relative_time(msg['run_at'].is_a?(Numeric) ? Time.at(msg['run_at']) : Time.parse(msg['run_at']))
|
||||
|
|
|
@ -18,7 +18,7 @@ table class="queue table table-hover table-bordered table-striped"
|
|||
- if msg['args'] and msg['args'].to_s.size > 100
|
||||
= msg['args'].inspect[0..100] + "... "
|
||||
button data-toggle="collapse" data-target="#worker_#{index}" class="btn btn-mini" Show All
|
||||
.collapse[id="worker_#{index}"]= msg['args']
|
||||
.toggle[id="worker_#{index}" style="display: none;"]= msg['args']
|
||||
- else
|
||||
= msg['args']
|
||||
td
|
||||
|
|
Loading…
Add table
Reference in a new issue