Merge "Don't allow interaction while page loading"

This commit is contained in:
jenkins-bot 2016-05-11 10:13:14 +00:00 committed by Gerrit Code Review
commit 12ec2f422d
2 changed files with 18 additions and 0 deletions

View file

@ -4,6 +4,9 @@
$.extend( DiffPage.prototype, {
refresh: function ( oldId, newId ) {
$( 'body' )
.find( 'table.diff[data-mw=\'interface\']' )
.append( '<div id="revision-slider-darkness"></div>' );
$.ajax( {
url: mw.util.wikiScript( 'index' ),
data: {

View file

@ -94,3 +94,18 @@
border-style: solid;
border-width: 0 10px 10px 10px;
}
#revision-slider-darkness {
background-color: white;
filter:alpha(opacity=50); /* IE */
opacity: 0.5; /* Safari, Opera */
-moz-opacity:0.50; /* FireFox */
z-index: 20;
height: 100%;
width: 100%;
background-repeat:no-repeat;
background-position:center;
position:absolute;
top: 0;
left: 0;
}