31 lines
658 B
JavaScript
Raw Normal View History

2011-05-04 13:17:01 +00:00
$(document).ready(function(){
2013-02-17 16:41:39 +00:00
2011-05-04 13:17:01 +00:00
//Boite de dialog surveillance
$('.dialogsurv').on('click', function(){
2011-05-04 13:17:01 +00:00
var title = $(this).attr('title');
var href = $(this).attr('href');
var dialogOpts = {
bgiframe: true,
title: title,
width: 500,
height: 350,
modal: true,
open: function(event, ui) {
$(this).html('Chargement...');
$(this).load(href);
$('#dialogsurv').keypress(function(e){
if (e.keyCode == 13){
e.preventDefault();
survSubmit();
}
});
},
2012-01-24 17:28:52 +00:00
close: function() {
$('#dialogsurv').remove();
}
2011-05-04 13:17:01 +00:00
};
$('<div id="dialogsurv"></div>').dialog(dialogOpts);
return false;
});
2013-02-17 16:41:39 +00:00
});