Sha256: aaa142cd3562aff231dddfe88366d78c8c1ba79f8b34224db0b9b08645d41b01

Contents?: true

Size: 1.1 KB

Versions: 17

Compression:

Stored size: 1.1 KB

Contents

I"V(function() {
  Turbolinks.enableProgressBar();

  this.app = angular.module('push_type', ['ui.tree']);

  this.app.run([
    '$http', function($http) {
      $http.defaults.headers.common['Accept'] = 'application/json';
      return $http.defaults.headers.common['Content-Type'] = 'application/json';
    }
  ]);

  this.app.directive('sidePanel', function() {
    return function(scope, $el, attrs) {
      return $el.sticky({
        topSpacing: 80,
        getWidthFrom: '.sticky-wrapper',
        responsiveWidth: true
      });
    };
  });

  $(document).on('ready page:load', function() {
    $(document).foundation();
    $(document).confirmWithReveal();
    angular.bootstrap($('[role="main"]'), ['push_type']);
    return $('.node-list.sortable').sortable({
      handle: '.handle',
      forcePlaceholderSize: true
    }).on('sortupdate', function(e, ui) {
      var obj;
      obj = {
        prev: ui.item.prev().data('id'),
        next: ui.item.next().data('id')
      };
      return $.post("/push_type/nodes/" + (ui.item.data('id')) + "/position", obj, 'json');
    });
  });

}).call(this);
:ET

Version data entries

17 entries across 17 versions & 3 rubygems

Version Path
push_type_wysiwyg-0.6.0.beta.1 test/dummy/tmp/cache/assets/development/sprockets/v3.0/hHilQ4bcUd8onLMrObWVvrbBXGQji2ic5mYuEwKnnNY.cache
push_type_auth-0.6.0.beta.1 test/dummy/tmp/cache/assets/test/sprockets/v3.0/hHilQ4bcUd8onLMrObWVvrbBXGQji2ic5mYuEwKnnNY.cache
push_type_admin-0.6.0.beta.1 test/dummy/tmp/cache/assets/test/sprockets/v3.0/hHilQ4bcUd8onLMrObWVvrbBXGQji2ic5mYuEwKnnNY.cache
push_type_auth-0.5.3 test/dummy/tmp/cache/assets/test/sprockets/v3.0/hHilQ4bcUd8onLMrObWVvrbBXGQji2ic5mYuEwKnnNY.cache
push_type_admin-0.5.3 test/dummy/tmp/cache/assets/test/sprockets/v3.0/hHilQ4bcUd8onLMrObWVvrbBXGQji2ic5mYuEwKnnNY.cache
push_type_auth-0.5.2 test/dummy/tmp/cache/assets/test/sprockets/v3.0/hHilQ4bcUd8onLMrObWVvrbBXGQji2ic5mYuEwKnnNY.cache
push_type_admin-0.5.2 test/dummy/tmp/cache/assets/test/sprockets/v3.0/hHilQ4bcUd8onLMrObWVvrbBXGQji2ic5mYuEwKnnNY.cache
push_type_auth-0.5.1 test/dummy/tmp/cache/assets/test/sprockets/v3.0/hHilQ4bcUd8onLMrObWVvrbBXGQji2ic5mYuEwKnnNY.cache
push_type_admin-0.5.1 test/dummy/tmp/cache/assets/test/sprockets/v3.0/hHilQ4bcUd8onLMrObWVvrbBXGQji2ic5mYuEwKnnNY.cache
push_type_auth-0.5.0 test/dummy/tmp/cache/assets/test/sprockets/v3.0/hHilQ4bcUd8onLMrObWVvrbBXGQji2ic5mYuEwKnnNY.cache
push_type_admin-0.5.0 test/dummy/tmp/cache/assets/test/sprockets/v3.0/hHilQ4bcUd8onLMrObWVvrbBXGQji2ic5mYuEwKnnNY.cache
push_type_auth-0.5.0.alpha.5 test/dummy/tmp/cache/assets/test/sprockets/v3.0/-XZrvqLgU0SXOYqv244MIRF5o-VIQI8d-4yfApQHCuA.cache
push_type_admin-0.5.0.alpha.5 test/dummy/tmp/cache/assets/test/sprockets/v3.0/-XZrvqLgU0SXOYqv244MIRF5o-VIQI8d-4yfApQHCuA.cache
push_type_auth-0.5.0.alpha.4 test/dummy/tmp/cache/assets/test/sprockets/v3.0/-XZrvqLgU0SXOYqv244MIRF5o-VIQI8d-4yfApQHCuA.cache
push_type_admin-0.5.0.alpha.4 test/dummy/tmp/cache/assets/test/sprockets/v3.0/-XZrvqLgU0SXOYqv244MIRF5o-VIQI8d-4yfApQHCuA.cache
push_type_auth-0.5.0.alpha.3 test/dummy/tmp/cache/assets/test/sprockets/v3.0/-XZrvqLgU0SXOYqv244MIRF5o-VIQI8d-4yfApQHCuA.cache
push_type_admin-0.5.0.alpha.3 test/dummy/tmp/cache/assets/test/sprockets/v3.0/-XZrvqLgU0SXOYqv244MIRF5o-VIQI8d-4yfApQHCuA.cache