lib/riemann/dash/public/views/title.js in riemann-dash-0.1.1 vs lib/riemann/dash/public/views/title.js in riemann-dash-0.2.0

- old
+ new

@@ -4,11 +4,13 @@ var Title = function(json) { view.View.call(this, json); this.title = json.title; this.clickFocusable = true; this.el.addClass("title"); - this.el.text(this.title); + this.h2 = $('<h2/>'); + this.el.append(this.h2); + this.h2.text(this.title); this.reflow(); } view.inherit(view.View, Title); view.Title = Title; @@ -26,8 +28,8 @@ '<input type="title" name="title" value="{{title}}" />', this); } Title.prototype.reflow = function() { - this.el.quickfit(fitopts); + this.h2.quickfit(fitopts); } })();