From: Mike Taylor Date: Mon, 20 Oct 2014 11:27:36 +0000 (+0100) Subject: Fix case and spelling of widget-type names X-Git-Tag: 1.0.0~155^2~6 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=03aa531c961b56b06bcc2e2b94ccb47cdb86e7e4;p=mkws-moved-to-github.git Fix case and spelling of widget-type names --- diff --git a/src/mkws-popup.js b/src/mkws-popup.js index 7496a07..97156c0 100644 --- a/src/mkws-popup.js +++ b/src/mkws-popup.js @@ -4,7 +4,7 @@ //"use strict"; // $(document).ready(function () { -mkws.registerWidgetType('Popup', function() { +mkws.registerWidgetType('popup', function() { var $ = mkws.$; var debug = mkws.log; debug("init popup window"); diff --git a/src/mkws-widget-authname.js b/src/mkws-widget-authname.js index b1e0b1f..b96dad2 100644 --- a/src/mkws-widget-authname.js +++ b/src/mkws-widget-authname.js @@ -1,4 +1,4 @@ -mkws.registerWidgetType('Authname', function() { +mkws.registerWidgetType('auth-name', function() { var that = this; this.team.queue("authenticated").subscribe(function(authName) { diff --git a/src/mkws-widget-builder.js b/src/mkws-widget-builder.js index 6468e86..aae9a81 100644 --- a/src/mkws-widget-builder.js +++ b/src/mkws-widget-builder.js @@ -1,4 +1,4 @@ -mkws.registerWidgetType('Builder', function() { +mkws.registerWidgetType('builder', function() { var that = this; var team = this.team; @@ -8,9 +8,9 @@ mkws.registerWidgetType('Builder', 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(); + var query = team.widget('query').value(); + var sort = team.widget('sort').value(); + var perpage = team.widget('per-page').value(); var html = ('