VolkerE has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/353115 )
Change subject: demos: Rename deprecated Card to current TabPanel ...................................................................... demos: Rename deprecated Card to current TabPanel Follow-up to Icfe1652cc038dc131b6b855ce9b45040b8ee5178 Bug: T155152 Change-Id: I3465389e39fda0a30abb87af4b8917bddb1624d5 --- M demos/classes/IndexedDialog.js D demos/classes/SampleCard.js M demos/index.html M src/layouts/TabPanelLayout.js 4 files changed, 6 insertions(+), 11 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/oojs/ui refs/changes/15/353115/1 diff --git a/demos/classes/IndexedDialog.js b/demos/classes/IndexedDialog.js index 5c2fd10..9f224a7 100644 --- a/demos/classes/IndexedDialog.js +++ b/demos/classes/IndexedDialog.js @@ -14,10 +14,10 @@ Demo.IndexedDialog.parent.prototype.initialize.apply( this, arguments ); this.indexLayout = new OO.ui.IndexLayout(); this.cards = [ - new Demo.SampleCard( 'first', { label: 'One' } ), - new Demo.SampleCard( 'second', { label: 'Two' } ), - new Demo.SampleCard( 'third', { label: 'Three' } ), - new Demo.SampleCard( 'fourth', { label: 'Four' } ) + new Demo.SampleTabPanel( 'first', { label: 'One' } ), + new Demo.SampleTabPanel( 'second', { label: 'Two' } ), + new Demo.SampleTabPanel( 'third', { label: 'Three' } ), + new Demo.SampleTabPanel( 'fourth', { label: 'Four' } ) ]; this.indexLayout.addCards( this.cards ); diff --git a/demos/classes/SampleCard.js b/demos/classes/SampleCard.js deleted file mode 100644 index c108896..0000000 --- a/demos/classes/SampleCard.js +++ /dev/null @@ -1,5 +0,0 @@ -Demo.SampleCard = function DemoSampleCard( name, config ) { - OO.ui.CardLayout.call( this, name, config ); - this.$element.text( this.label ); -}; -OO.inheritClass( Demo.SampleCard, OO.ui.CardLayout ); diff --git a/demos/index.html b/demos/index.html index 4571afe..185be52 100644 --- a/demos/index.html +++ b/demos/index.html @@ -36,7 +36,7 @@ <script src="classes/PopupButtonWidgetTest.js"></script> <script src="classes/PositionSelectWidget.js"></script> <script src="classes/ProcessDialog.js"></script> - <script src="classes/SampleCard.js"></script> + <script src="classes/SampleTabPanel.js"></script> <script src="classes/SamplePage.js"></script> <script src="classes/SearchWidgetDialog.js"></script> <script src="classes/SimpleDialog.js"></script> diff --git a/src/layouts/TabPanelLayout.js b/src/layouts/TabPanelLayout.js index 475f5c0..cdb81fd 100644 --- a/src/layouts/TabPanelLayout.js +++ b/src/layouts/TabPanelLayout.js @@ -151,7 +151,7 @@ * @extends OO.ui.TabPanelLayout * * @constructor - * @deprecated since v0.22.0 + * @deprecated since v0.21.3 */ OO.ui.CardLayout = function OoUiCardLayout() { OO.ui.warnDeprecation( 'CardLayout has been renamed to TabPanel layout. Use that instead. See T155152' ); -- To view, visit https://gerrit.wikimedia.org/r/353115 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I3465389e39fda0a30abb87af4b8917bddb1624d5 Gerrit-PatchSet: 1 Gerrit-Project: oojs/ui Gerrit-Branch: master Gerrit-Owner: VolkerE <volke...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits