Click not working on
Click not working on
I was using this http://jqueryui.com/demos/sortable/portlets.html
example as a start for some experimenting. I made a <a href="#"
id="add">add</a> link with the following code
$("#add").click(function() {
$(".column").prepend("<div class=\"portlet ui-widget ui-widget-content
ui-helper-clearfix ui-corner-all\"><div class=\"portlet-header ui-
widget-header ui-corner-all\"><span class=\"ui-icon ui-icon-plusthick
\"></span>Feeds</div><div class=\"portlet-content\">Lorem ipsum dolor
sit amet, consectetuer adipiscing elit</div></div>")
});
This adds a new 'portlet' to each column. It looks nice but when
trying to minimize the new portlets, it fails. The original portlets
work correctly though. The new ones can be correctly sorted, this
seems to work fine. What am I doing wrong here?