lib/riemann/dash/public/views/title.js in riemann-dash-0.2.1 vs lib/riemann/dash/public/views/title.js in riemann-dash-0.2.3
- old
+ new
@@ -21,13 +21,16 @@
type: 'Title',
title: this.title
});
}
+ var editTemplate = _.template(
+ '<label for="title">Title</label>' +
+ '<input type="title" name="title" value="{{title}}" />'
+ );
+
Title.prototype.editForm = function() {
- return Mustache.render('<label for="title">Title</label>' +
- '<input type="title" name="title" value="{{title}}" />',
- this);
+ return editTemplate(this);
}
Title.prototype.reflow = function() {
this.h2.quickfit(fitopts);
}