Sha256: befd96a1586f091e1de1f63d3df4522d73e686fc672408a41e43ef8e4f5de64d

Contents?: true

Size: 650 Bytes

Versions: 4

Compression:

Stored size: 650 Bytes

Contents

# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
module Admin::ApplicationHelper
 #----------------------------------------------------------------------------
  def link_to_confirm_delete(model)
    link_to(t(:yes_button),
      url_for([:admin, model]),
      :method  => :delete,
      :remote  => true,
      :onclick => visual_effect(:highlight, dom_id(model), :startcolor => "#ffe4e1")
    )
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fat_free_crm-0.12.3 app/helpers/admin/application_helper.rb
fat_free_crm-0.12.2 app/helpers/admin/application_helper.rb
fat_free_crm-0.12.1 app/helpers/admin/application_helper.rb
fat_free_crm-0.12.0 app/helpers/admin/application_helper.rb