mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 11:16:51 +00:00
Dropping IE9: Remove disableUneditableContent from DesktopArticleTarget
Bug: T162277 Change-Id: Ibb38284573078098c2173232239e9836a8161f56
This commit is contained in:
parent
f51a6d5020
commit
5266776953
|
@ -44,7 +44,6 @@
|
|||
.ve-loading #content > :not( .ve-init-mw-desktopArticleTarget-loading-overlay ),
|
||||
/* Once activated, all uneditable content except catlinks */
|
||||
.ve-activated .ve-init-mw-desktopArticleTarget-uneditableContent {
|
||||
/* IE9 is supported with JS events */
|
||||
pointer-events: none;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
|
|
|
@ -878,7 +878,6 @@ ve.init.mw.DesktopArticleTarget.prototype.rebuildCategories = function ( categor
|
|||
}
|
||||
$categories = $( $.parseHTML( response.parse.categorieshtml ) );
|
||||
target.transformCategoryLinks( $categories );
|
||||
target.disableUneditableContent( $categories );
|
||||
mw.hook( 'wikipage.categories' ).fire( $categories );
|
||||
$( '#catlinks' ).replaceWith( $categories );
|
||||
} );
|
||||
|
@ -1239,8 +1238,6 @@ ve.init.mw.DesktopArticleTarget.prototype.transformPage = function () {
|
|||
$content = $content.parent();
|
||||
}
|
||||
|
||||
this.disableUneditableContent();
|
||||
|
||||
this.updateHistoryState();
|
||||
};
|
||||
|
||||
|
@ -1266,18 +1263,6 @@ ve.init.mw.DesktopArticleTarget.prototype.transformCategoryLinks = function ( $c
|
|||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Disabling of non-editable content, in a given context
|
||||
*
|
||||
* @param {jQuery|string} [context] Context to disable in
|
||||
*/
|
||||
ve.init.mw.DesktopArticleTarget.prototype.disableUneditableContent = function ( context ) {
|
||||
$( '.ve-init-mw-desktopArticleTarget-uneditableContent', context ).on( 'click.ve-target', function ( e ) {
|
||||
// Support IE9: Prevent default, but don't stop propagation
|
||||
e.preventDefault();
|
||||
} );
|
||||
};
|
||||
|
||||
/**
|
||||
* Update the history state based on the editor mode
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue