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

Version Path
hyde_admin-0.0.13 bin/hyde_assets/hyde_admin.js
hyde_admin-0.0.11 bin/hyde_assets/hyde_admin.js
hyde_admin-0.0.10 bin/hyde_assets/hyde_admin.js
hyde_admin-0.0.9 bin/hyde_assets/hyde_admin.js
hyde_admin-0.0.8 bin/hyde_assets/hyde_admin.js
hyde_admin-0.0.7 bin/hyde_assets/hyde_admin.js
hyde_admin-0.0.5 bin/hyde_assets/hyde_admin.js
hyde_admin-0.0.4 bin/hyde_assets/hyde_admin.js
hyde_admin-0.0.3 bin/hyde_assets/hyde_admin.js