mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 21:13:26 +00:00
42 lines
919 B
JavaScript
42 lines
919 B
JavaScript
(function(){
|
|
|
|
$(document).ready(function(){
|
|
|
|
$('a.dialog').live('click', function(event){
|
|
|
|
var $this = $(this);
|
|
|
|
|
|
$('#DIALOG').attr('title', $this.attr('title'))
|
|
.empty().addClass('loading')
|
|
.dialog({
|
|
buttons:{},
|
|
draggable:false,
|
|
resizable:false,
|
|
closeOnEscape:true,
|
|
modal:true,
|
|
width:'800',
|
|
height:'500'
|
|
})
|
|
.dialog('open');
|
|
|
|
$.ajax({
|
|
type: "GET",
|
|
url: $this.attr('href'),
|
|
dataType: 'html',
|
|
beforeSend:function(){
|
|
|
|
},
|
|
success: function(data){
|
|
$('#DIALOG').removeClass('loading').empty()
|
|
.append(data);
|
|
return;
|
|
}
|
|
});
|
|
|
|
return false;
|
|
});
|
|
|
|
});
|
|
|
|
}()) |