Created
June 1, 2012 19:27
-
-
Save mreidsma/2854573 to your computer and use it in GitHub Desktop.
jQuery to make draggable links in our database admin page clickable.
This file contains 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
// j is defined as jQuery noconflict mode on this page. | |
j("#other li").click(function() { | |
var selected = j(this).text(); | |
selected = j.trim(selected); | |
var codeclass = j(this).attr("class"); | |
var newlink = '<li class="' + codeclass + '">' + selected + '</li>'; | |
j("#mpopular").append(newlink); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment