X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=www%2Fjssrc%2Fblerg%2FTitle.js;h=17d62a218bd096858c4f5f3d57d0debdf700a119;hb=c3a777f760bedf3f196571612a7f3a1b3c707dbf;hp=bd82520105d709b18f0dbb0cb902df6e563200d7;hpb=55431b133192e59138a51591d7ef4ef20b6ceb52;p=blerg.git diff --git a/www/jssrc/blerg/Title.js b/www/jssrc/blerg/Title.js index bd82520..17d62a2 100644 --- a/www/jssrc/blerg/Title.js +++ b/www/jssrc/blerg/Title.js @@ -1,30 +1,30 @@ enyo.kind({ - name: "blerg.Title", - kind: "Control", - style: "float: left; width: 40%", - published: { - section: "" - }, - handlers: { - onSetTitle: "setTitle" - }, - components: [ - {kind: "Image", classes: "logo", src: "images/blerglogo.png", attributes: {width: 125, height: 122}}, - {tag: "h1", components: [ - {kind: "blerg.Link", href: "#/", content: "Blërg!"} - ]}, - {tag: "h2", components: [ - {name: "section", tag: "span"} - ]} - ], - create: function() { - this.inherited(arguments); - }, - sectionChanged: function() { - this.$.section.setContent(this.section); - }, - setTitle: function(inSender, inEvent) { - if (inEvent.section) - this.setSection(inEvent.section); - } + name: "blerg.Title", + kind: "Control", + classes: "blerg-title", + published: { + section: "" + }, + handlers: { + onSetTitle: "setTitle" + }, + components: [ + {kind: "Image", classes: "logo", src: "images/blerglogo.png", attributes: {width: 125, height: 122}}, + {tag: "h1", components: [ + {kind: "blerg.Link", href: "/#/", content: "Blërg!"} + ]}, + {tag: "h2", components: [ + {name: "section", tag: "span"} + ]} + ], + create: function() { + this.inherited(arguments); + }, + sectionChanged: function() { + this.$.section.setContent(this.section); + }, + setTitle: function(inSender, inEvent) { + if (inEvent.section) + this.setSection(inEvent.section); + } });