Sha256: 956e46573556ec278bffbd27b0bab098c648f08e60125ba0e426578affd8795f

Contents?: true

Size: 565 Bytes

Versions: 16

Compression:

Stored size: 565 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('qbrick.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

16 entries across 16 versions & 1 rubygems

Version Path
qbrick-2.7.1 app/views/qbrick/cms/ckimages/index.html.haml
qbrick-2.7 app/views/qbrick/cms/ckimages/index.html.haml
qbrick-2.6.10 app/views/qbrick/cms/ckimages/index.html.haml
qbrick-2.6.9 app/views/qbrick/cms/ckimages/index.html.haml
qbrick-2.6.8 app/views/qbrick/cms/ckimages/index.html.haml
qbrick-2.6.7 app/views/qbrick/cms/ckimages/index.html.haml
qbrick-2.6.6 app/views/qbrick/cms/ckimages/index.html.haml
qbrick-2.6.5 app/views/qbrick/cms/ckimages/index.html.haml
qbrick-2.6.4 app/views/qbrick/cms/ckimages/index.html.haml
qbrick-2.6.3 app/views/qbrick/cms/ckimages/index.html.haml
qbrick-2.6.2 app/views/qbrick/cms/ckimages/index.html.haml
qbrick-2.6.1 app/views/qbrick/cms/ckimages/index.html.haml
qbrick-2.6.0 app/views/qbrick/cms/ckimages/index.html.haml
qbrick-2.5.2 app/views/qbrick/cms/ckimages/index.html.haml
qbrick-2.5.1 app/views/qbrick/cms/ckimages/index.html.haml
qbrick-2.5.0 app/views/qbrick/cms/ckimages/index.html.haml