Skip to content
This repository has been archived by the owner on Jan 4, 2020. It is now read-only.

data atributs overwrite global settings #41

Open
jankrnavek opened this issue Aug 10, 2016 · 1 comment
Open

data atributs overwrite global settings #41

jankrnavek opened this issue Aug 10, 2016 · 1 comment

Comments

@jankrnavek
Copy link

It would be great if i have possibility to set global common setting (per project) with method .confirmation({ "many options"}) and do any small extra settings on a particular button over data attributes. (data attributs will overwrite global setting)

@jnikles
Copy link

jnikles commented Jan 16, 2017

@jankrnavek as for the global settings, you can simply extend $.fn.confirmation.defaults like so:
$.extend($.fn.confirmation.defaults, {...})

But I agree on the request, that programmatic settings should have priority over data attributes, assuming they differ from the default values.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants