Sha256: 8a7d57b0c9ddb915c926f61f79e1e1d8d43aad572f614664261f5a5cfec838c2

Contents?: true

Size: 792 Bytes

Versions: 23

Compression:

Stored size: 792 Bytes

Contents

$.extend Alchemy,

  # Opens an image in a dialog
  # Used by the picture library
  zoomImage: (url, title, width, height) ->
    Alchemy.openDialog url,
      size: "#{width}x#{height}"
      title: title
      padding: false
      overflow: 'hidden'
      ready: (dialog) ->
        Alchemy.ImageLoader dialog,
          color: '#000'

  # Trash window methods
  TrashWindow:

    # Opens the trash window
    open: (page_id, title) ->
      url = Alchemy.routes.admin_trash_path(page_id)
      Alchemy.TrashWindow.current = new Alchemy.Dialog url,
        title: title,
        size: '380x460',
        modal: false
      Alchemy.TrashWindow.current.open()

    # Refreshes the trash window
    refresh: ->
      if Alchemy.TrashWindow.current
        Alchemy.TrashWindow.current.reload()

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
alchemy_cms-3.0.0.rc7 app/assets/javascripts/alchemy/alchemy.windows.js.coffee
alchemy_cms-3.0.0.rc6 app/assets/javascripts/alchemy/alchemy.windows.js.coffee
alchemy_cms-3.0.0.rc5 app/assets/javascripts/alchemy/alchemy.windows.js.coffee