Created
June 19, 2012 13:54
-
-
Save jcreamer898/2954357 to your computer and use it in GitHub Desktop.
Exclude a child.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<li class="selected"> | |
<div class="item-desc"> | |
<h2>Basic Party Pack</h2> | |
<p><span>$32 </span>for 2 guests</p> | |
<p class="per">$15.79 per guest</p> | |
<a title="View Details" href="#/abc1" class="selected">View Details</a> | |
</div> | |
<div class="add"> | |
<form> | |
<label for="qty">Qty: <input type="text" id="qty_q0" class="qty"></label> | |
<input type="image" alt="Select Item" src="img/btn-select-item.png" class="action-button"> | |
</form> | |
</div> | |
</li> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('li').on(self.options.activateEvent, function(e) { | |
e.preventDefault(); | |
// Exclude clicks on el's in the add div? | |
if (!$(e.target).parents('.add').length) { | |
self._vars.currentSlide = i; | |
self._activateSlide(i); | |
self._cycleStop(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment