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

If localDropOnly enabled error ev not defined #48

Open
jonl-percsolutions-com opened this issue Jul 31, 2019 · 0 comments
Open

If localDropOnly enabled error ev not defined #48

jonl-percsolutions-com opened this issue Jul 31, 2019 · 0 comments

Comments

@jonl-percsolutions-com
Copy link

If local drop only is enabled on an elementSpec, an error is received, ev is not defined. Error is in method Xonomy.insertDropTargets.

	if(elSpec.localDropOnly(harvestElement($element.toArray()[0]))) {
		if(elSpec.canDropTo) { //remove the drop target from elements that are not the dragged element's parent
			var droppers=$wnd.jQuery(".xonomy .elementDropper").toArray();
			for(var i=0; i<droppers.length; i++) {
				var dropper=droppers[i];
				if(dropper.parentNode!=ev.target.parentNode.parentNode.parentNode) { **//ev is not defined here!!!**
					dropper.parentNode.removeChild(dropper);
				}
			}
		}
	}

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