Workzone stories attach/detach

This commit is contained in:
Romain Neutron
2011-12-27 19:15:30 +01:00
parent ae4ac2b911
commit 1257da5d70
6 changed files with 197 additions and 355 deletions

View File

@@ -5,6 +5,18 @@
$('a.dialog').live('click', function(event){
var $this = $(this);
$('#DIALOG').attr('title', $this.attr('title'))
.empty().addClass('loading')
.dialog({
resizable:false,
closeOnEscape:true,
modal:true,
width:'800',
height:'500'
})
.dialog('open');
$.ajax({
type: "GET",
@@ -14,11 +26,8 @@
},
success: function(data){
$('#DIALOG').attr('title', $this.attr('title'))
.empty()
.append(data)
.dialog()
.dialog('open');
$('#DIALOG').removeClass('loading').empty()
.append(data);
return;
}
});
@@ -26,8 +35,6 @@
return false;
});
});
}())