Sha256: e697d4d19c75d7618b33645d4839d7cc90e528f3aa5a95d7cedeb4e7074743f5
Contents?: true
Size: 761 Bytes
Versions: 25
Compression:
Stored size: 761 Bytes
Contents
:coffee showSpinner = -> $ '.spinner' .css 'display', 'block' #Only for rockets installRocket = (evt) -> evt.preventDefault() rocket_file = $('.file-uploader input:file').val() can_install = true if rocket_file isnt '' if rocket_file.includes('.rocket') $('.rocket-name').each -> if rocket_file.includes $(this).text() swal "#{I18n.t('keppler.rockets.already_installed')}" can_install = false if can_install showSpinner() $ '.upload_rocket_form' .submit() else swal "#{I18n.t('keppler.rockets.isnt_a_rocket')}" else swal "#{I18n.t('keppler.rockets.first_upload')}" $('#installRocket').on 'click', installRocket
Version data entries
25 entries across 24 versions & 1 rubygems