jenkins-bot has submitted this change and it was merged.

Change subject: DiscussionCount: revert previous change and fix typo
......................................................................


DiscussionCount: revert previous change and fix typo

This reverts commit 319881 as there is a better approach in
BlueSpiceFoundation. Also fixed a typo in a variable name.

Change-Id: I4098f8475301baa2f5de6b99bbec0d33ef527cd9
---
M resources/components/skin.contentActions.js
1 file changed, 3 insertions(+), 3 deletions(-)

Approvals:
  Robert Vogel: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/resources/components/skin.contentActions.js 
b/resources/components/skin.contentActions.js
index a7ce6e0..e18c9f2 100644
--- a/resources/components/skin.contentActions.js
+++ b/resources/components/skin.contentActions.js
@@ -1,9 +1,9 @@
 (function(mw, $){
        $(function(){
                if ( mw.config.get('wgIsArticle') === true && 
mw.config.get('wgArticleId') !== 0 ) {
-                       bs.api.tasks.execSilent( 'wikipage', 
'getDiscussionCount', { "page_id": mw.config.get('wgArticleId') } ).done( 
function( repsonse ) {
-                               if( repsonse.success ) {
-                                       var $discussAmount = $('<span> 
('+repsonse.payload+')</span>');
+                       bs.api.tasks.execSilent( 'wikipage', 
'getDiscussionCount' ).done( function( response ) {
+                               if( response.success ) {
+                                       var $discussAmount = $('<span> 
('+response.payload+')</span>');
                                        $discussAmount.hide();
                                        $discussAmount.appendTo( $('#ca-talk > 
a').first() );
                                        $discussAmount.css( 'display', 'inline' 
).fadeIn();

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I4098f8475301baa2f5de6b99bbec0d33ef527cd9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/skins/BlueSpiceSkin
Gerrit-Branch: master
Gerrit-Owner: Mglaser <[email protected]>
Gerrit-Reviewer: Dvogel hallowelt <[email protected]>
Gerrit-Reviewer: Ljonka <[email protected]>
Gerrit-Reviewer: Pwirth <[email protected]>
Gerrit-Reviewer: Robert Vogel <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to