1 /* See license.txt for terms of usage */ 2 3 define(["firebug/lib/domplate"], function(Domplate) { 4 5 // ********************************************************************************************* // 6 // Constants 7 8 Firebug.BalloonNote = function(doc, object) 9 { 10 this.initialize(doc, object); 11 } 12 13 with (Domplate) { 14 Firebug.BalloonNote.prototype = domplate( 15 { 16 tag: 17 DIV({"class": "balloon", onclick: "$onClick"}, 18 DIV({"class": "balloonTop1"}, 19 DIV({"class": "balloonTop2"}) 20 ), 21 DIV({"class": "balloonInner1"}, 22 DIV({"class": "balloonInner2"}, 23 DIV({"class": "balloonInner3"}, 24 DIV({"class": "balloonInner4"}, 25 IMG({"class": "balloonCloseButton closeButton", src: "blank.gif", 26 onclick: "$onCloseAction"}), 27 DIV({"class": "balloonContent"}, 28 TAG("$cause|getContentTag", {cause: "$cause"}) 29 ) 30 ) 31 ) 32 ) 33 ), 34 DIV({"class": "balloonBottom1"}, 35 DIV({"class": "balloonBottom2"}) 36 ) 37 ), 38 39 getContentTag: function(object) 40 { 41 return DIV(object.message); 42 }, 43 44 onCloseAction: function() 45 { 46 }, 47 48 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 49 50 initialize: function(doc, object) 51 { 52 // xxxHonza: TODO: this object should implement the whole show/hide logic 53 // move from Firebug.BreakNotification 54 }, 55 })}; 56 57 // ********************************************************************************************* // 58 }); 59