mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Workzone stories attach/detach
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
}())
|
Reference in New Issue
Block a user