Sha256: a86d0567310c48dcc1d8bc1e1d47dd0771d7b7aeb0d219e423f53d09ba80b5ee

Contents?: true

Size: 651 Bytes

Versions: 19

Compression:

Stored size: 651 Bytes

Contents

/* ========================================================================
 * http://styleguide.bookingsync.com/javascript/#toggle
 * ========================================================================
 * Copyright 2016 BookingSync SAS.
 * Licensed under MIT (https://github.com/BookingSync/styleguide/blob/master/LICENSE)
 * ======================================================================== */

+function ($) {
  'use strict';

  $(document).on('click', '[data-toggle="toggle"]', function (event) {
    event.preventDefault();
    var element = $(this);
    $(element.data('target')).toggleClass(element.data('value'));
  });
}(jQuery);

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
bootstrap-bookingsync-sass-3.0.0 assets/javascripts/bookingsync/toggle.js
bootstrap-bookingsync-sass-2.0.0 assets/javascripts/bookingsync/toggle.js
bootstrap-bookingsync-sass-1.0.5 assets/javascripts/bookingsync/toggle.js
bootstrap-bookingsync-sass-1.0.4 assets/javascripts/bookingsync/toggle.js
bootstrap-bookingsync-sass-1.0.3 assets/javascripts/bookingsync/toggle.js
bootstrap-bookingsync-sass-1.0.2 assets/javascripts/bookingsync/toggle.js
bootstrap-bookingsync-sass-1.0.1 assets/javascripts/bookingsync/toggle.js
bootstrap-bookingsync-sass-1.0.0 assets/javascripts/bookingsync/toggle.js
bootstrap-bookingsync-sass-1.0.0.beta12 assets/javascripts/bookingsync/toggle.js
bootstrap-bookingsync-sass-1.0.0.beta11 assets/javascripts/bookingsync/toggle.js
bootstrap-bookingsync-sass-1.0.0.beta10 assets/javascripts/bookingsync/toggle.js
bootstrap-bookingsync-sass-1.0.0.beta9 assets/javascripts/bookingsync/toggle.js
bootstrap-bookingsync-sass-1.0.0.beta8 assets/javascripts/bookingsync/toggle.js
bootstrap-bookingsync-sass-1.0.0.beta7 assets/javascripts/bookingsync/toggle.js
bootstrap-bookingsync-sass-1.0.0.beta6 assets/javascripts/bookingsync/toggle.js
bootstrap-bookingsync-sass-1.0.0.beta5 assets/javascripts/bookingsync/toggle.js
bootstrap-bookingsync-sass-1.0.0.beta4 assets/javascripts/bookingsync/toggle.js
bootstrap-bookingsync-sass-1.0.0.beta3 assets/javascripts/bookingsync/toggle.js
bootstrap-bookingsync-sass-1.0.0.beta2 assets/javascripts/bookingsync/toggle.js