Sha256: a5d0ce1e9227ca5f00e46bcf5b0803aa332efa6ae87ab9afc8be9ed9e44ef7de

Contents?: true

Size: 251 Bytes

Versions: 8

Compression:

Stored size: 251 Bytes

Contents

if @moderatorship.valid?
  page.select(".make-moderator-#{@moderatorship.user_id}").invoke('update', render(:partial => '/moderators/toggle', :locals => {:forum => @moderatorship.forum, :user => @moderatorship.user }))
else
  page.alert(:failed.l)
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
community_engine-2.3.2 app/views/moderators/create.js.rjs
community_engine-2.3.1 app/views/moderators/create.js.rjs
community_engine-2.3.0 app/views/moderators/create.js.rjs
community_engine-2.1.0 app/views/moderators/create.js.rjs
community_engine-2.0.0 app/views/moderators/create.js.rjs
community_engine-2.0.0.beta3 app/views/moderators/create.js.rjs
community_engine-2.0.0.beta2 app/views/moderators/create.js.rjs
community_engine-2.0.0.beta1 app/views/moderators/create.js.rjs