Sha256: 191912f10f6ac1faf12d396ae87d2ed6c9f14f234d80b7afe89a3be00a8eeef2
Contents?: true
Size: 744 Bytes
Versions: 109
Compression:
Stored size: 744 Bytes
Contents
$.extend Alchemy, # Trash window methods TrashWindow: # Opens the trash window open: (page_id, title) -> url = Alchemy.routes.admin_trash_path(page_id) @current = new Alchemy.Dialog url, title: title, size: '380x460', modal: false @current.open() return # Refreshes the trash window refresh: -> @current.reload() if @current return # Update the trash window icon updateIcon: -> return unless @current? $icon = $("#element_trash_button .icon") # Is the trash window open? if $("#trash_items div.element-editor").not(".dragged").length is 0 $icon.removeClass("full") else $icon.addClass("full") return
Version data entries
109 entries across 109 versions & 1 rubygems