Skip to content

Instantly share code, notes, and snippets.

@bebraw
Created October 17, 2010 08:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bebraw/630656 to your computer and use it in GitHub Desktop.
Save bebraw/630656 to your computer and use it in GitHub Desktop.
new Sortable('layers');
// XXX: this won't get triggered because parent is Sortable!
$('toggleVisibility').on('click', function() {
// set layer hidden now
})
<ul class="layers">
<li><div class="toggleVisibility">Visibility toggle</div><div class="layerName">Layer name</div></li>
<li><div class="toggleVisibility">Visibility toggle</div><div class="layerName">Layer name</div></li>
<li><div class="toggleVisibility">Visibility toggle</div><div class="layerName">Layer name</div></li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment