Bartosz Dziewoński has uploaded a new change for review.
https://gerrit.wikimedia.org/r/154483
Change subject: Use jquery.spinner module instead of
skins/common/images/spinner.gif
......................................................................
Use jquery.spinner module instead of skins/common/images/spinner.gif
Bug: 69672
Change-Id: If36ddaa241b215770115da1b19a4810e086fc441
---
M ApiSandbox.php
M resources/main.js
2 files changed, 4 insertions(+), 5 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ApiSandbox
refs/changes/83/154483/1
diff --git a/ApiSandbox.php b/ApiSandbox.php
index bcd03c8..c9ffc6e 100644
--- a/ApiSandbox.php
+++ b/ApiSandbox.php
@@ -50,6 +50,7 @@
),
'dependencies' => array(
'mediawiki.util',
+ 'jquery.spinner',
'jquery.ui.button',
)
);
diff --git a/resources/main.js b/resources/main.js
index 4142bcc..458b0a3 100644
--- a/resources/main.js
+++ b/resources/main.js
@@ -63,11 +63,9 @@
* @param $element {jQuery} Container for the loading message
*/
function showLoading( $element ) {
- $element.html(
- mw.html.element( 'img',
- { src: mw.config.get( 'stylepath' ) +
'/common/images/spinner.gif', alt: '' } ) +
- mw.html.escape( mw.msg( 'apisb-loading' ) )
- );
+ $element
+ .text( mw.msg( 'apisb-loading' ) )
+ .prepend( $.createSpinner( { size: 'small', type:
'inline' } ) );
}
function showLoadError( $element, message ) {
--
To view, visit https://gerrit.wikimedia.org/r/154483
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If36ddaa241b215770115da1b19a4810e086fc441
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ApiSandbox
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits