X-Git-Url: https://dev.renevier.net/?p=syj.git;a=blobdiff_plain;f=public%2Fjs%2Fclosebtn.js;fp=public%2Fjs%2Fclosebtn.js;h=0000000000000000000000000000000000000000;hp=84be90a45ca6597276d185bc4a2a65021daf0d1e;hb=1de0f433144272946051bb0df886b8c43459beb8;hpb=d9f13fbba43193040911105caf393aff945eb02d diff --git a/public/js/closebtn.js b/public/js/closebtn.js deleted file mode 100644 index 84be90a..0000000 --- a/public/js/closebtn.js +++ /dev/null @@ -1,27 +0,0 @@ -/* Copyright (c) 2010 Arnaud Renevier, Inc, published under the modified BSD - * license. */ - -var CloseBtn = Class.create({ - initialize: function(elt, options) { - var btn, imgsrc, style; - - elt = $(elt); - if (!elt) { - return; - } - - style = Object.extend({ - float: "right", - margin: "2px", - fontWeight: "bold", - padding: "0px" - }, typeof options === "object" ? options.style: {}); - - imgsrc = (options && options.closeBtnSrc) || "icons/close.png"; - btn = new Element("input", { type: "image", src: imgsrc, alt: "X"}).setStyle(style); - elt.insert({top: btn}); - btn.observe("click", function(evt) { - elt.hide(); - }); - } -});