Mwjames has uploaded a new change for review.
Change subject: Split $.smwTooltip into two methods (init and add)
......................................................................
Split $.smwTooltip into two methods (init and add)
## Description
Split $.smwTooltip into two methods (init and add). The add method can be
used on any element and handles the creation of the icon/content element
and also initializes the tooltip with a qtip2 instance.
## Usage
$( ... ).smwTooltip( 'add', {
title: ...,
type: ...,
content:...
} );
I'd like to use a namespace for this such as smw.tooltip/
semanticMediawiki.Tooltip but since jquery and namespaces usage sucks
(in order to allow normal chaining behaviour ) I have to leave this for
and use fn.smw...
## Dependency
on change I88adbae3
Change-Id: Icc9c43e428189a029c589a0869541d3dc4d54251
---
M resources/ext.smw.util.tooltip.js
1 file changed, 87 insertions(+), 21 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SemanticMediaWiki
refs/changes/67/27267/1
--
To view, visit https://gerrit.wikimedia.org/r/27267
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Icc9c43e428189a029c589a0869541d3dc4d54251
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticMediaWiki
Gerrit-Branch: master
Gerrit-Owner: Mwjames <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits