Sha256: 6c78d5f835e58a0559880b9daf6dba961dba39efbf8e6649226c44cbceca022f

Contents?: true

Size: 482 Bytes

Versions: 1

Compression:

Stored size: 482 Bytes

Contents

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
citizen_budget_model-0.0.1 app/assets/javascripts/citizen_budget_model/main.js