Sha256: f9db2ec5124e1a73d77c877ccf371ff133dff94d0c6570c9efcbbb02df9d47fe

Contents?: true

Size: 427 Bytes

Versions: 1

Compression:

Stored size: 427 Bytes

Contents

CATARSE.ProjectsPending_backersView = Backbone.View.extend({
  initialize: function() {
    $('input[type=checkbox]').live('click', function(){
      var id = $(this).parent().parent().attr('id')
      var field = $(this).attr('id').split('__')[0]
      $.post('/projects/update_attribute_on_the_spot', {
        id: 'backer__' + field + '__' + id,
        value: ($(this).is(':checked') ? true : false)
      })
    })
  }
})

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
catarse_core-1.0.0.beta app/assets/javascripts/app/views/projects/pending_backers.js