From 5b6e737c2fac60cce0e708b1d5573a933021bb66 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Tue, 20 May 2014 12:03:45 +0100 Subject: [PATCH] Move the Reference widget into the main set --- examples/htdocs/mkws-widget-reference.js | 19 ------------------- src/mkws-widget-reference.js | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 19 deletions(-) delete mode 100644 examples/htdocs/mkws-widget-reference.js create mode 100644 src/mkws-widget-reference.js diff --git a/examples/htdocs/mkws-widget-reference.js b/examples/htdocs/mkws-widget-reference.js deleted file mode 100644 index 7bccbcf..0000000 --- a/examples/htdocs/mkws-widget-reference.js +++ /dev/null @@ -1,19 +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.team.registerTemplate('Reference', '\ - {{md-title}}\ -

{{md-title}}

\ -{{#if md-title-remainder}}\ - {{md-title-remainder}}\ -{{/if}}\ -{{#if md-title-responsibility}}\ - {{md-title-responsibility}}\ -{{/if}}\ -

\ - {{{mkws-paragraphs md-description}}}\ -

\ -'); -}); diff --git a/src/mkws-widget-reference.js b/src/mkws-widget-reference.js new file mode 100644 index 0000000..7bccbcf --- /dev/null +++ b/src/mkws-widget-reference.js @@ -0,0 +1,19 @@ +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.team.registerTemplate('Reference', '\ + {{md-title}}\ +

{{md-title}}

\ +{{#if md-title-remainder}}\ + {{md-title-remainder}}\ +{{/if}}\ +{{#if md-title-responsibility}}\ + {{md-title-responsibility}}\ +{{/if}}\ +

\ + {{{mkws-paragraphs md-description}}}\ +

\ +'); +}); -- 1.7.10.4