$(function() {
$( "#sortable" ).sortable({
revert: true
});
$( "#draggable" ).draggable({
connectToSortable: "#sortable",
helper: "clone",
revert: "invalid",
stop: function(event, ui) {
$("#dialog").dialog('open');
}
});
$( "ul, li" ).disableSelection();
});
$(function() {
$("#dialog").dialog({
autoOpen: false,
height: 150,
width: 200,
modal: true
});
});
function changeTitle() {
var boxText = $("#newsTitle").val();
$(".ui-draggable").text(boxText);
$(".ui-state-default").removeClass('ui-draggable');
}
I think I've narrowed it down to having something do with when the dialog returns. Any ideas?

New Topic/Question
Reply


MultiQuote

|