Sha256: 522426d92595fc723e65d9b8717ac60f00e945fa9fd53f5607d581f12fbbbc5b

Contents?: true

Size: 1.17 KB

Versions: 103

Compression:

Stored size: 1.17 KB

Contents

I"¦(function() {
  $(function() {
    return $('[data-awesome-nested-set-item]').each(function() {
      return $(this).draggable({
        scope: $(this).attr('data-awesome-nested-set-item-scope'),
        revert: true
      });
    });
  });

  $(function() {
    return $('[data-awesome-nested-set-item]').each(function() {
      var authenticity_token, redirect_target;
      redirect_target = $(this).attr('data-awesome-nested-set-item-on-drop-target');
      console.log(redirect_target);
      authenticity_token = $('meta[name="csrf-token"]').attr('content');
      return $(this).droppable({
        accept: '.awesome-nested-set-item',
        scope: $(this).attr('data-awesome-nested-set-item-scope'),
        activeClass: 'btn-success',
        drop: function(event, ui) {
          var dropped_element, dropped_element_to_param;
          dropped_element = $(ui.draggable);
          dropped_element_to_param = dropped_element.attr('data-awesome-nested-set-item-uid');
          return $.redirect(redirect_target, {
            authenticity_token: authenticity_token,
            dropped_id: dropped_element_to_param
          });
        }
      });
    });
  });

}).call(this);
:ET

Version data entries

103 entries across 103 versions & 9 rubygems

Version Path
cmor_user_area-0.0.49.pre spec/dummy/tmp/cache/assets/sprockets/v3.0/_n/_ntSSL5pBuDCIAMwyIjmAfkrmx_pwfN_pianqvnNsRw.cache
cmor_system-0.0.49.pre spec/dummy/tmp/cache/assets/sprockets/v3.0/_n/_ntSSL5pBuDCIAMwyIjmAfkrmx_pwfN_pianqvnNsRw.cache
cmor_showcase-0.0.49.pre spec/dummy/tmp/cache/assets/sprockets/v3.0/_n/_ntSSL5pBuDCIAMwyIjmAfkrmx_pwfN_pianqvnNsRw.cache
cmor_seo-0.0.49.pre spec/dummy/tmp/cache/assets/sprockets/v3.0/_n/_ntSSL5pBuDCIAMwyIjmAfkrmx_pwfN_pianqvnNsRw.cache
cmor_legal-0.0.49.pre spec/dummy/tmp/cache/assets/sprockets/v3.0/_n/_ntSSL5pBuDCIAMwyIjmAfkrmx_pwfN_pianqvnNsRw.cache
cmor_user_area_backend-0.0.48.pre spec/dummy/tmp/cache/assets/sprockets/v3.0/_n/_ntSSL5pBuDCIAMwyIjmAfkrmx_pwfN_pianqvnNsRw.cache
cmor_cms_backend-0.0.48.pre spec/dummy/tmp/cache/assets/sprockets/v3.0/_n/_ntSSL5pBuDCIAMwyIjmAfkrmx_pwfN_pianqvnNsRw.cache
cmor_user_area-0.0.48.pre spec/dummy/tmp/cache/assets/sprockets/v3.0/_n/_ntSSL5pBuDCIAMwyIjmAfkrmx_pwfN_pianqvnNsRw.cache
cmor_system-0.0.48.pre spec/dummy/tmp/cache/assets/sprockets/v3.0/_n/_ntSSL5pBuDCIAMwyIjmAfkrmx_pwfN_pianqvnNsRw.cache
cmor_showcase-0.0.48.pre spec/dummy/tmp/cache/assets/sprockets/v3.0/_n/_ntSSL5pBuDCIAMwyIjmAfkrmx_pwfN_pianqvnNsRw.cache
cmor_seo-0.0.48.pre spec/dummy/tmp/cache/assets/sprockets/v3.0/_n/_ntSSL5pBuDCIAMwyIjmAfkrmx_pwfN_pianqvnNsRw.cache
cmor_legal-0.0.48.pre spec/dummy/tmp/cache/assets/sprockets/v3.0/_n/_ntSSL5pBuDCIAMwyIjmAfkrmx_pwfN_pianqvnNsRw.cache
cmor_user_area_backend-0.0.45.pre spec/dummy/tmp/cache/assets/sprockets/v3.0/_n/_ntSSL5pBuDCIAMwyIjmAfkrmx_pwfN_pianqvnNsRw.cache
cmor_cms_backend-0.0.45.pre spec/dummy/tmp/cache/assets/sprockets/v3.0/_n/_ntSSL5pBuDCIAMwyIjmAfkrmx_pwfN_pianqvnNsRw.cache
cmor_user_area-0.0.45.pre spec/dummy/tmp/cache/assets/sprockets/v3.0/_n/_ntSSL5pBuDCIAMwyIjmAfkrmx_pwfN_pianqvnNsRw.cache
cmor_system-0.0.45.pre spec/dummy/tmp/cache/assets/sprockets/v3.0/_n/_ntSSL5pBuDCIAMwyIjmAfkrmx_pwfN_pianqvnNsRw.cache
cmor_showcase-0.0.45.pre spec/dummy/tmp/cache/assets/sprockets/v3.0/_n/_ntSSL5pBuDCIAMwyIjmAfkrmx_pwfN_pianqvnNsRw.cache
cmor_seo-0.0.45.pre spec/dummy/tmp/cache/assets/sprockets/v3.0/_n/_ntSSL5pBuDCIAMwyIjmAfkrmx_pwfN_pianqvnNsRw.cache
cmor_system-0.0.44.pre spec/dummy/tmp/cache/assets/sprockets/v3.0/_n/_ntSSL5pBuDCIAMwyIjmAfkrmx_pwfN_pianqvnNsRw.cache
cmor_user_area_backend-0.0.44.pre spec/dummy/tmp/cache/assets/sprockets/v3.0/_n/_ntSSL5pBuDCIAMwyIjmAfkrmx_pwfN_pianqvnNsRw.cache