Mglaser has uploaded a new change for review.
https://gerrit.wikimedia.org/r/320084
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(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/skins/BlueSpiceSkin
refs/changes/84/320084/1
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: newchange
Gerrit-Change-Id: I4098f8475301baa2f5de6b99bbec0d33ef527cd9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/skins/BlueSpiceSkin
Gerrit-Branch: master
Gerrit-Owner: Mglaser <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits