32 lines
723 B
JavaScript
32 lines
723 B
JavaScript
$(document).ready(function(){
|
|
|
|
$('#message').hover(
|
|
function(){ $('#control').css('display', 'block'); },
|
|
function(){ $('#control').css('display', 'none'); }
|
|
);
|
|
|
|
$('#saveciblage').on('click', function(){
|
|
var title = 'Sauvegarde du profil de ciblage';
|
|
var href = $(this).attr('href');
|
|
var dialogOpts = {
|
|
bgiframe: true,
|
|
title: title,
|
|
width: 500,
|
|
height: 200,
|
|
modal: true,
|
|
open: function(event, ui) {
|
|
$(this).html('Chargement...');
|
|
$(this).load(href);
|
|
},
|
|
buttons: {
|
|
Annuler: function() { $(this).dialog('close'); }
|
|
},
|
|
close: function() { $('#dialogsaveciblage').remove(); }
|
|
};
|
|
$('<div id="dialogsaveciblage"></div>').dialog(dialogOpts);
|
|
return false;
|
|
});
|
|
|
|
});
|
|
|