Sha256: 023bd309c8eb44882753c82350901c54e48bc94f662ab2b94d92c120af8d4186
Contents?: true
Size: 645 Bytes
Versions: 9
Compression:
Stored size: 645 Bytes
Contents
$(function(){ $(document).on('click','#btn-deploy,#btn-rebuild',function(elt){ let path = ''; if(elt.id === 'btn-deploy'){ path = '/deploy'; }else if(elt.id === 'btn-rebuild'){ path = '/rebuild'; } $.post( path, { beforeSend: function( xhr ) { $('#waiting').show(); } }) .done(function( data ) { $('#waiting').hide(); return false; }); }); $(document).on('click','.form-confirm',function(){ return window.confirm($(this).attr('data-confirm')); }); });
Version data entries
9 entries across 9 versions & 1 rubygems