Sha256: b6bb84a70662dadd8f3ddc9edf49e013a2326f86bd9f36d9352127a5e2b2accc

Contents?: true

Size: 504 Bytes

Versions: 3

Compression:

Stored size: 504 Bytes

Contents

/* jshint laxcomma: true */
jQuery(function ($) {
  $('.sortable').sortable({
    axis: 'y'
  , cursor: 'move'
  , handle: 'span.glyphicon-resize-vertical'
  , update: function (event) {
      var $target = $(event.target);
      $.ajax({
        type: 'POST'
      , url: location.href.split('?')[0].split('#')[0] + '/sort'
      , data: $target.sortable('serialize')
      }).done(function () {
        $target.effect('highlight');
      });
    }
  });

  $('.editable').editable({type: 'text'});
});

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
citizen_budget_model-0.0.4 app/assets/javascripts/citizen_budget_model/main.js
citizen_budget_model-0.0.3 app/assets/javascripts/citizen_budget_model/main.js
citizen_budget_model-0.0.2 app/assets/javascripts/citizen_budget_model/main.js