59 lines
1.4 KiB
JavaScript
Raw Normal View History

$(document).ready(function(){
2011-07-04 08:12:50 +00:00
$('input.button').button();
2011-04-21 13:32:53 +00:00
//Tooltip de surveillance
$('u[tooltip]').each(function(){
$(this).qtip({
content: $(this).attr('tooltip'),
style: { lasses: "ui-tooltip-dark" },
2011-08-30 07:11:39 +00:00
position: {
at: "top center",
my: "bottom center"
}
2011-04-21 13:32:53 +00:00
});
});
$('.demanderef').on('click', function(){
var title = '';
var hrefSuiv = $(this).attr('href');
2012-02-13 12:56:10 +00:00
var href = '/surveillance/demanderef/';
var dialogOpts = {
bgiframe: true,
title: title,
width: 500,
height: 200,
modal: true,
open: function(event, ui) {
$(this).html('Chargement...');
$(this).load(href);
},
buttons: {
Ok: function() {
var ref = $('input[name="ref"]').val();
var encours = $('input[name="encours"]').val();
var email = $('input[name="email"]').val();
2011-11-29 15:00:11 +00:00
var href = hrefSuiv+'?ref='+ref+'&encours='+encours+'&email='+email;
window.location.href = href;
},
Annuler: function() { $(this).dialog('close'); }
},
close: function() { $('#dialogsurv').remove(); }
};
$('<div id="dialogsurv"></div>').dialog(dialogOpts);
return false;
});
$('span#bodacc a').on('click', function(e){
e.preventDefault();
var href = $(this).attr('href');
$('span#bodacc').html('Chargement du bodacc...').load(href);
});
//Auto Scroll
$(window).scroll(function() {
var offset = $(window).scrollTop();
$("#menu").css('margin-top',offset);
});
2011-09-30 09:51:09 +00:00
});