Sha256: 0dd573c2da8b2ec4df22fc6eeef0ac29927fe5cce946ab04d3340cdd2b215d67
Contents?: true
Size: 1.16 KB
Versions: 9
Compression:
Stored size: 1.16 KB
Contents
.card .card-header = t('.update_title', title: fluentd_ui_title) .card-body #processing = icon('fa-lg fa-gear fa-spin') = t('.updating') #finished{style: "display: none"} = icon('fa-lg fa-check') = t('.update_finish') %p= link_to t('misc.information.page_title'), misc_information_path #failed{style: "display: none"} = icon('fa-lg fa-exclamation-circle') = t('.failed', title: fluentd_ui_title) %p= link_to t('misc.information.page_title'), misc_information_path :javascript var CURRENT_PID = "#{@current_pid}"; function ping() { setTimeout(function(){ jQuery.ajax({ url: "#{misc_upgrading_status_path}", type: "GET", data: { old_pid: CURRENT_PID } }) .fail(ping) .done(function(status){ switch(status) { case "updating": ping(); break; case "failed": jQuery('#processing').hide(); jQuery('#failed').show(); break; case "finished": jQuery('#processing').hide(); jQuery('#finished').show(); break; } }); }, 3000); } ping();
Version data entries
9 entries across 9 versions & 1 rubygems