Skip to content

Commit

Permalink
Remove possible remote from this._config
Browse files Browse the repository at this point in the history
Bootstrap 3 uses data-remote for modals.
https://getbootstrap.com/docs/3.4/javascript/#modals-options

This closes ashleydw#309
  • Loading branch information
mlt committed May 7, 2020
1 parent 0a3d211 commit de424f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ekko-lightbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -672,10 +672,12 @@ const Lightbox = (($) => {
config = config || {}
return this.each(() => {
let $this = $(this)
let data = $this.data()
delete data.remote
let _config = $.extend(
{},
Lightbox.Default,
$this.data(),
data,
typeof config === 'object' && config
)

Expand Down

0 comments on commit de424f8

Please sign in to comment.