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
|
2011-11-09 10:07:02 +00:00
|
|
|
$('.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;
|
|
|
|
});
|
2011-05-23 09:04:10 +00:00
|
|
|
|
2013-02-17 16:41:39 +00:00
|
|
|
});
|