From 22e681033a9e5111081d701da64536b43b2dd1bb Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Mon, 12 Jan 2015 16:51:06 +0000 Subject: [PATCH] Last part of MKWS-348. Widget type registered is now "wikipedia". But "reference" is still registered as an alias. --- src/mkws-widget-wikipedia.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mkws-widget-wikipedia.js b/src/mkws-widget-wikipedia.js index 59da6e7..5123f10 100644 --- a/src/mkws-widget-wikipedia.js +++ b/src/mkws-widget-wikipedia.js @@ -1,4 +1,4 @@ -mkws.registerWidgetType('reference', function() { +mkws.registerWidgetType('wikipedia', function() { mkws.promotionFunction('record').call(this); if (!this.config.target) this.config.target = 'wikimedia_wikipedia_single_result'; if (!this.config.template) this.config.template = 'reference'; @@ -6,3 +6,4 @@ mkws.registerWidgetType('reference', function() { this.config.template_vars.sentences = this.config.sentences || 0; this.config.template_vars.credit = this.config.credit || "Wikipedia"; }); +mkws.aliasWidgetType('reference', 'wikipedia'); -- 1.7.10.4