You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
694 B

/*设计期功能函数*/
$(function(){
$(".d-con").sortable({
placeholder: "ui-state-highlight",
cursor: "move",
connectWith:".d-con",
items:">.d-item"
}).disableSelection();
$(".d-con,.d-item").click(function(event){
_setSelectStatus(this,event);
});
});
function additem(control){
if(!$(".d-active").hasClass("d-con")){
return;
}
$(".d-con.d-active").append($.render(control.id,$.str2json(control.content)));
$(".d-con").sortable({
placeholder: "ui-state-highlight",
cursor: "move",
connectWith:".d-con",
items:">.d-item"
}).disableSelection();
}
function refresh(op){
if($(".d-active").length==0){
return;
}
$.refreshControl(op,$(".d-active"));
}