jenkins-bot has submitted this change and it was merged.
Change subject: New collection opens collection editor interface
......................................................................
New collection opens collection editor interface
Bug: T94803
Dependency: Id171118c104a872f7e2e00de57cc125645cb4207
Change-Id: I1e444cef82a387ab135c19d35af8ff5bbac6bac8
---
M resources/Resources.php
M resources/ext.gather.watchstar/CollectionsContentOverlay.js
2 files changed, 6 insertions(+), 3 deletions(-)
Approvals:
Jhernandez: Looks good to me, approved
jenkins-bot: Verified
diff --git a/resources/Resources.php b/resources/Resources.php
index 2ca7056..fe564ee 100644
--- a/resources/Resources.php
+++ b/resources/Resources.php
@@ -125,6 +125,7 @@
'ext.gather.watchstar' => $wgGatherResourceFileModuleBoilerplate +
array(
'dependencies' => array(
+ 'ext.gather.routes',
'mediawiki.util',
'mobile.user',
'ext.gather.api',
diff --git a/resources/ext.gather.watchstar/CollectionsContentOverlay.js
b/resources/ext.gather.watchstar/CollectionsContentOverlay.js
index 86626fa..ecbb955 100644
--- a/resources/ext.gather.watchstar/CollectionsContentOverlay.js
+++ b/resources/ext.gather.watchstar/CollectionsContentOverlay.js
@@ -317,9 +317,11 @@
this.createButton.showSpinner();
return api.addCollection( title ).done( function (
collection ) {
- api.addPageToCollection( collection.id, page
).done(
- $.proxy( self,
'_collectionStateChange', collection, true )
- ).fail( function () {
+ api.addPageToCollection( collection.id, page
).done( function () {
+ // open the editor
+ self._collectionStateChange(
collection, true );
+ window.location.hash =
'#/collection/edit/' + collection.id;
+ } ).fail( function () {
toast.show( mw.msg(
'gather-add-failed-toast', title ), 'toast' );
// Hide since collection was created
properly and list is outdated
self.hide();
--
To view, visit https://gerrit.wikimedia.org/r/204332
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I1e444cef82a387ab135c19d35af8ff5bbac6bac8
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/extensions/Gather
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>
Gerrit-Reviewer: Jhernandez <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits