From 03aa531c961b56b06bcc2e2b94ccb47cdb86e7e4 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Mon, 20 Oct 2014 12:27:36 +0100 Subject: [PATCH] Fix case and spelling of widget-type names --- src/mkws-popup.js | 2 +- src/mkws-widget-authname.js | 2 +- src/mkws-widget-builder.js | 12 +++++------ src/mkws-widget-categories.js | 2 +- src/mkws-widget-log.js | 2 +- src/mkws-widget-main.js | 46 ++++++++++++++++++++--------------------- src/mkws-widget-record.js | 18 ++++++++-------- src/mkws-widget-reference.js | 4 ++-- src/mkws-widget-termlists.js | 4 ++-- 9 files changed, 46 insertions(+), 46 deletions(-) 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 = ('