From 260e2a1f35100a31294988cc2429fb239f7838c0 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Mon, 12 Jan 2015 14:47:23 +0000 Subject: [PATCH] Rename file -- part of MKWS-349 --- src/mkws-widget-reference.js | 8 -------- src/mkws-widget-wikipedia.js | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) delete mode 100644 src/mkws-widget-reference.js create mode 100644 src/mkws-widget-wikipedia.js diff --git a/src/mkws-widget-reference.js b/src/mkws-widget-reference.js deleted file mode 100644 index 59da6e7..0000000 --- a/src/mkws-widget-reference.js +++ /dev/null @@ -1,8 +0,0 @@ -mkws.registerWidgetType('reference', 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'; - this.config.template_vars.paragraphs = this.config.paragraphs || 0; - this.config.template_vars.sentences = this.config.sentences || 0; - this.config.template_vars.credit = this.config.credit || "Wikipedia"; -}); diff --git a/src/mkws-widget-wikipedia.js b/src/mkws-widget-wikipedia.js new file mode 100644 index 0000000..59da6e7 --- /dev/null +++ b/src/mkws-widget-wikipedia.js @@ -0,0 +1,8 @@ +mkws.registerWidgetType('reference', 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'; + this.config.template_vars.paragraphs = this.config.paragraphs || 0; + this.config.template_vars.sentences = this.config.sentences || 0; + this.config.template_vars.credit = this.config.credit || "Wikipedia"; +}); -- 1.7.10.4