Files
Phraseanet/www/prod/jquery.Prod.js
2011-12-27 19:15:30 +01:00

40 lines
850 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({
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;
});
});
}())