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

Version Path
keppler-2.1.22 installer/core/app/views/admin/rockets/_install_rocket.haml
keppler-2.1.21 installer/core/app/views/admin/rockets/_install_rocket.haml
keppler-2.1.20 installer/core/app/views/admin/rockets/_install_rocket.haml
keppler-2.1.19 installer/core/app/views/admin/rockets/_install_rocket.haml
keppler-2.1.18 testing-with-2.1.18/app/views/admin/rockets/_install_rocket.haml
keppler-2.1.18 installer/core/app/views/admin/rockets/_install_rocket.haml
keppler-2.1.17 installer/core/app/views/admin/rockets/_install_rocket.haml
keppler-2.1.16 installer/core/app/views/admin/rockets/_install_rocket.haml
keppler-2.1.15 installer/core/app/views/admin/rockets/_install_rocket.haml
keppler-2.1.14 installer/core/app/views/admin/rockets/_install_rocket.haml
keppler-2.1.13 installer/core/app/views/admin/rockets/_install_rocket.haml
keppler-2.1.12 installer/core/app/views/admin/rockets/_install_rocket.haml
keppler-2.1.11 installer/core/app/views/admin/rockets/_install_rocket.haml
keppler-2.1.10 installer/core/app/views/admin/rockets/_install_rocket.haml
keppler-2.1.9 installer/core/app/views/admin/rockets/_install_rocket.haml
keppler-2.1.8 installer/core/app/views/admin/rockets/_install_rocket.haml
keppler-2.1.7 installer/core/app/views/admin/rockets/_install_rocket.haml
keppler-2.1.6 installer/core/app/views/admin/rockets/_install_rocket.haml
keppler-2.1.5 installer/core/app/views/admin/rockets/_install_rocket.haml
keppler-2.1.4 installer/core/app/views/admin/rockets/_install_rocket.haml