Sha256: 3228e43b3c79001483281512ae01a67fe9287b01962d67a85ffc308dd3682435

Contents?: true

Size: 373 Bytes

Versions: 11

Compression:

Stored size: 373 Bytes

Contents

$.extend Alchemy,
  removePicture: (selector) ->
    $form_field = $(selector)
    $element = $form_field.closest(".element-editor")
    $content = $form_field.closest(".content_editor")
    if $form_field[0]
      $form_field.val ""
      $content.find(".thumbnail_background").html('<i class="icon far fa-image fa-fw"/>')
      Alchemy.setElementDirty $element
    false

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
alchemy-custom-model-3.2 app/assets/javascripts/backend/fix_more_image_in_element.js.coffee
alchemy-custom-model-3.1.5 app/assets/javascripts/backend/fix_more_image_in_element.js.coffee
alchemy-custom-model-3.1.4 app/assets/javascripts/backend/fix_more_image_in_element.js.coffee
alchemy-custom-model-3.1.3 app/assets/javascripts/backend/fix_more_image_in_element.js.coffee
alchemy-custom-model-3.1.2 app/assets/javascripts/backend/fix_more_image_in_element.js.coffee
alchemy-custom-model-3.1.1 app/assets/javascripts/backend/fix_more_image_in_element.js.coffee
alchemy-custom-model-3.1.0 app/assets/javascripts/backend/fix_more_image_in_element.js.coffee
alchemy-custom-model-2.2.2 app/assets/javascripts/backend/fix_more_image_in_element.js.coffee
alchemy-custom-model-3.0.0 app/assets/javascripts/backend/fix_more_image_in_element.js.coffee
alchemy-custom-model-2.2.1 app/assets/javascripts/backend/fix_more_image_in_element.js.coffee
alchemy-custom-model-2.2.0 app/assets/javascripts/backend/fix_more_image_in_element.js.coffee