Sha256: c4456683a62a2c9511875407e680fe3504377b03b3ccdc9c3e72bcb0bfdbfc40

Contents?: true

Size: 566 Bytes

Versions: 12

Compression:

Stored size: 566 Bytes

Contents

- @ckimages.each do |image|
  .ckimage-wrapper{ id: "ckimage_#{image.id}" }
    .ckimage-thumb{ 'data-image-url' => image.file.url, 'data-func-num' => @func_num }
      = image_tag image.file.thumb.url
    .ckimage-delete
      =link_to 'Delete', cms_ckimage_path(image), method: :delete, remote: true, data: { confirm: t('kuhsaft.cms.ckimages.confirm') }

:coffeescript
  $('.ckimage-thumb').click ->
    funcNum = $(this).data('func-num')
    imageUrl = $(this).data('image-url')
    window.opener.CKEDITOR.tools.callFunction(funcNum, imageUrl)
    window.close()

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
kuhsaft-2.6.3 app/views/kuhsaft/cms/ckimages/index.html.haml
kuhsaft-2.6.2 app/views/kuhsaft/cms/ckimages/index.html.haml
kuhsaft-2.6.1 app/views/kuhsaft/cms/ckimages/index.html.haml
kuhsaft-2.5.2 app/views/kuhsaft/cms/ckimages/index.html.haml
kuhsaft-2.6.0 app/views/kuhsaft/cms/ckimages/index.html.haml
kuhsaft-2.5.1 app/views/kuhsaft/cms/ckimages/index.html.haml
kuhsaft-2.5.0 app/views/kuhsaft/cms/ckimages/index.html.haml
qbrick-2.5.0.pre app/views/kuhsaft/cms/ckimages/index.html.haml
kuhsaft-2.4.3 app/views/kuhsaft/cms/ckimages/index.html.haml
kuhsaft-2.4.2 app/views/kuhsaft/cms/ckimages/index.html.haml
kuhsaft-2.4.1 app/views/kuhsaft/cms/ckimages/index.html.haml
kuhsaft-2.4.0 app/views/kuhsaft/cms/ckimages/index.html.haml