aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2014-09-08 14:46:37 +0200
committerRobin Krahl <me@robin-krahl.de>2014-09-08 14:46:37 +0200
commit67d9c4c7d96cc0a7371afeaf0eaf3e2289bff948 (patch)
tree505ad7a50a05f6aef240c004a271f8c16d3c477f
parentcc5941acf287dd182698e87bdfc60604ab6cba7b (diff)
downloadLrMediaWiki-67d9c4c7d96cc0a7371afeaf0eaf3e2289bff948.tar.gz
LrMediaWiki-67d9c4c7d96cc0a7371afeaf0eaf3e2289bff948.tar.bz2
Fix typo, increase license box width.
-rwxr-xr-xmediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/mediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua b/mediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua
index 90acf9e..26bce44 100755
--- a/mediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua
+++ b/mediawiki.lrdevplugin/MediaWikiExportServiceProvider.lua
@@ -206,6 +206,7 @@ MediaWikiExportServiceProvider.sectionsForTopOfDialog = function(viewFactory, pr
viewFactory:combo_box {
value = bind 'info_license',
immediate = true,
+ width_in_chars = 50,
items = {
'{{Cc-by-sa-4.0}}',
'{{Cc-by-4.0}}',
@@ -265,7 +266,7 @@ MediaWikiExportServiceProvider.sectionsForTopOfDialog = function(viewFactory, pr
viewFactory:push_button {
title = LOC '$$$/LrMediaWiki/Section/Licensing/Preview=Preview generated wikitext',
action = function(button)
- local wikitext = MediaWikiInterface.buildFileDescription('<!-- description -->', propertyTable.info_source, '<!-- date -->', propertyTable.info_author, propertyTable.info_license, '<!-- {{Location}} if GPS metadata is available -->\n' . propertyTable.info_templates, propertyTable.info_other, propertyTable.info_categories, '<!-- per-file categories -->')
+ local wikitext = MediaWikiInterface.buildFileDescription('<!-- description -->', propertyTable.info_source, '<!-- date -->', propertyTable.info_author, propertyTable.info_license, '<!-- {{Location}} if GPS metadata is available -->\n' .. propertyTable.info_templates, propertyTable.info_other, propertyTable.info_categories, '<!-- per-file categories -->')
LrDialogs.message(LOC '$$$/LrMediaWiki/Section/Licensing/Preview=Preview generated wikitext', wikitext, 'info')
end,
},