Aleksey Bekh-Ivanov (WMDE) has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/339663 )

Change subject: [WIP] [DNM] Made GeoShape configurable
......................................................................

[WIP] [DNM] Made GeoShape configurable

TODO make CommonsMediaType also configurable

A step towards making GeoShape view configurable
Bug: T57549

Change-Id: I819892c319d485af777b542292e68dce4f460416
---
M src/experts/GeoShape.js
M src/jquery.valueview.valueview.js
2 files changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/data-values/value-view 
refs/changes/63/339663/1

diff --git a/src/experts/GeoShape.js b/src/experts/GeoShape.js
index 3d2a241..09d673a 100644
--- a/src/experts/GeoShape.js
+++ b/src/experts/GeoShape.js
@@ -28,7 +28,7 @@
 
                        $input.commonssuggester( {
                                namespace: 'Data',
-                               apiUrl: 
'https://commons.wikimedia.org/w/api.php'
+                               apiUrl: this._options.commonsApiUrl
                        } );
 
                        // Using the inputautoexpand plugin, the position of 
the dropdown needs to be updated
diff --git a/src/jquery.valueview.valueview.js 
b/src/jquery.valueview.valueview.js
index 2c76592..0903442 100644
--- a/src/jquery.valueview.valueview.js
+++ b/src/jquery.valueview.valueview.js
@@ -558,6 +558,7 @@
                                        language: this.options.language,
                                        vocabularyLookupApiUrl: 
this.options.vocabularyLookupApiUrl || null,
                                        contentLanguages: 
this.options.contentLanguages,
+                                       commonsApiUrl: 
this.options.commonsApiUrl,
                                        messageProvider: 
this.options.messageProvider
                                }
                        );

-- 
To view, visit https://gerrit.wikimedia.org/r/339663
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I819892c319d485af777b542292e68dce4f460416
Gerrit-PatchSet: 1
Gerrit-Project: data-values/value-view
Gerrit-Branch: master
Gerrit-Owner: Aleksey Bekh-Ivanov (WMDE) <aleksey.bekh-iva...@wikimedia.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to