I";(function() { $.extend(Alchemy, { TrashWindow: { open: function(page_id, title) { var url; url = Alchemy.routes.admin_trash_path(page_id); this.current = new Alchemy.Dialog(url, { title: title, size: '380x460', modal: false }); this.current.open(); }, refresh: function() { if (this.current) { this.current.reload(); } }, updateIcon: function() { var $icon; if (this.current == null) { return; } $icon = $("#element_trash_button .icon"); if ($("#trash_items div.element-editor").not(".dragged").length === 0) { $icon.removeClass("full"); } else { $icon.addClass("full"); } } } }); }).call(this); :ET