Skip to content

Minor update: Added support for data-weight="".#12

Open
godspeed1715 wants to merge 1 commit intoaddywaddy:masterfrom
godspeed1715:patch-1
Open

Minor update: Added support for data-weight="".#12
godspeed1715 wants to merge 1 commit intoaddywaddy:masterfrom
godspeed1715:patch-1

Conversation

@godspeed1715
Copy link

I added the option 'weightselector' which allows the selector of either 'data-weight="'' or 'rel=""'.
The if statement that replaces '$(this).attr("rel")':
'((opts.weightselector == "rel") && $( this ).attr('rel') ||
(opts.weightselector == "data") && $( this ).data('weight'))'

I added the option 'weightselector' which allows the selector of either 'data-weight="'' or 'rel=""'.
The if statement that replaces '$(this).attr("rel")':
'((opts.weightselector == "rel") && $( this ).attr('rel') ||
(opts.weightselector == "data") && $( this ).data('weight'))'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant