Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't bind callbacks on links into the content #268

Open
WebKieth opened this issue Mar 2, 2018 · 0 comments
Open

Can't bind callbacks on links into the content #268

WebKieth opened this issue Mar 2, 2018 · 0 comments

Comments

@WebKieth
Copy link

WebKieth commented Mar 2, 2018

I initialize my popovers into one component wrapper:

module.each(function(){
		var that = $(this),
		content = that.siblings("." + moduleName + "__content").html();
		that.webuiPopover({
			animation: 'pop',
			content: content,
			padding: false,
		})
	})

Into the parent block i bind click event for confirm action request:

 flowStatus.find('a').click (e) ->
    e.preventDefault()
    el = $ this
    title = el.data('title')
    if(!title)
      title = 'Вы удалите поток, уверены?'
    if el.hasClass('connect_delete')
      swal({
        title: title,
        text: "После удаления, данные восстановить не возможно",
        type: 'warning',
        showCancelButton: true,
        confirmButtonColor: '#3085d6',
        cancelButtonColor: '#d33',
        confirmButtonText: 'Да, уверен',
        cancelButtonText: 'Нет',
      })

Without webuipopover click working properly.
I didnt found into the docs how to trigger callbacks for cloned elements of my content.

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

No branches or pull requests

1 participant