Sha256: 6baa7a392b50478c4cf0ef5b74d925b88024f26fb73f1fe55daae9540f5ece37

Contents?: true

Size: 328 Bytes

Versions: 32

Compression:

Stored size: 328 Bytes

Contents

:javascript
  $('.keppler-switch').click(function(event) {
    event.preventDefault()
    var input = $(this).find('input')
    var label = $(this).find('.inline-label')
    input
      .toggleClass('active')
      .val(input.hasClass('active'))
    label
      .toggleClass('active')
      .text(label.hasClass('active'))
  })

Version data entries

32 entries across 31 versions & 1 rubygems

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