Dropping IE9: Remove disableUneditableContent from DesktopArticleTarget

Bug: T162277
Change-Id: Ibb38284573078098c2173232239e9836a8161f56
This commit is contained in:
Ed Sanders 2017-04-07 11:03:01 +01:00 committed by James D. Forrester
parent f51a6d5020
commit 5266776953
2 changed files with 0 additions and 16 deletions

View file

@ -44,7 +44,6 @@
.ve-loading #content > :not( .ve-init-mw-desktopArticleTarget-loading-overlay ), .ve-loading #content > :not( .ve-init-mw-desktopArticleTarget-loading-overlay ),
/* Once activated, all uneditable content except catlinks */ /* Once activated, all uneditable content except catlinks */
.ve-activated .ve-init-mw-desktopArticleTarget-uneditableContent { .ve-activated .ve-init-mw-desktopArticleTarget-uneditableContent {
/* IE9 is supported with JS events */
pointer-events: none; pointer-events: none;
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-select: none; -moz-user-select: none;

View file

@ -878,7 +878,6 @@ ve.init.mw.DesktopArticleTarget.prototype.rebuildCategories = function ( categor
} }
$categories = $( $.parseHTML( response.parse.categorieshtml ) ); $categories = $( $.parseHTML( response.parse.categorieshtml ) );
target.transformCategoryLinks( $categories ); target.transformCategoryLinks( $categories );
target.disableUneditableContent( $categories );
mw.hook( 'wikipage.categories' ).fire( $categories ); mw.hook( 'wikipage.categories' ).fire( $categories );
$( '#catlinks' ).replaceWith( $categories ); $( '#catlinks' ).replaceWith( $categories );
} ); } );
@ -1239,8 +1238,6 @@ ve.init.mw.DesktopArticleTarget.prototype.transformPage = function () {
$content = $content.parent(); $content = $content.parent();
} }
this.disableUneditableContent();
this.updateHistoryState(); 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 * Update the history state based on the editor mode
*/ */