Sha256: adf72f48ae5122cb6dfe948d9b0a60e3a759415a8b746709d52238b652b618b4

Contents?: true

Size: 317 Bytes

Versions: 2

Compression:

Stored size: 317 Bytes

Contents

if defined?(WillPaginate)
  module ImagePicker
    class LinkRenderer < WillPaginate::LinkRenderer
      def page_link(page, text, attributes = {})
        @template.link_to_function text, "ImagePicker.open_picker({field:$('target_field').value, page:'#{page}', terms:$('terms').value});"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
pelargir-image_picker-0.5 lib/image_picker/link_renderer.rb
image_picker-0.5 lib/image_picker/link_renderer.rb