[pmwiki-users] Galleria
DaveG
pmwiki at solidgone.com
Fri Jun 10 23:27:51 CDT 2011
On 6/10/2011 11:18 PM, DaveG wrote:
>> The example will not work in PmWiki without some tweaking, but it
>> shouldn't be
>> hard.
> Thanks, that seems like a workable solution, although I've not yet been
> able to find a selector that can get text after the BR.
I have the selector:
$(img).parent('div').contents().filter(function(){ return this.nodeType
== 3 }).text()
Unfortunately I can't yet get it to work in the context:
$('#demo').galleria({
dataConfig: function(img) {
return {
description:
$(img).parent('div').contents().filter(function(){ return this.nodeType
== 3 }).text()
}
}
});
More information about the pmwiki-users
mailing list