X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Fmkws-widget-builder.js;h=6468e869f54903903abf67a77a8a23d1a0e02906;hb=f46b615e92b693ca8bea0eb3fb0fab65c4fbf46e;hp=2092a75df7d79f371c20e8c04565c5853c968bde;hpb=8d43b38a531101963703b6e98681d0de683298ff;p=mkws-moved-to-github.git
diff --git a/src/mkws-widget-builder.js b/src/mkws-widget-builder.js
index 2092a75..6468e86 100644
--- a/src/mkws-widget-builder.js
+++ b/src/mkws-widget-builder.js
@@ -2,12 +2,12 @@ mkws.registerWidgetType('Builder', function() {
var that = this;
var team = this.team;
- this.button = mkws.$('', {
+ var button = mkws.$('', {
type: 'button',
text: this.config.text || "Build!"
});
- this.jqnode.append(this.button);
- this.button.click(function() {
+ this.node.append(button);
+ button.click(function() {
var query = team.widget('Query').value();
var sort = team.widget('Sort').value();
var perpage = team.widget('Perpage').value();
@@ -24,6 +24,6 @@ mkws.registerWidgetType('Builder', function() {
mkws.registerWidgetType('ConsoleBuilder', function() {
mkws.promotionFunction('Builder').call(this);
this.callback = function(s) {
- console.log("Generated widget: " + s);
+ console.log("generated widget: " + s);
}
});