2011-06-30 15:30:43 +00:00
|
|
|
$(document).ready( function()
|
|
|
|
{
|
2013-06-14 09:06:17 +00:00
|
|
|
$('a.dial').on('click', function(e){
|
|
|
|
e.preventDefault();
|
|
|
|
var title = $(this).attr('title');
|
|
|
|
var href = $(this).attr('href');
|
|
|
|
var dlgOpts = {
|
|
|
|
bgiframe: true,
|
|
|
|
title: title,
|
|
|
|
width: 710,
|
|
|
|
height: 530,
|
|
|
|
modal: true,
|
|
|
|
open: function(event, ui) {
|
|
|
|
$(this).html('Chargement...');
|
|
|
|
$(this).load(href);
|
|
|
|
},
|
|
|
|
buttons: {'Fermer': function() { $(this).dialog('close'); }},
|
|
|
|
close: function() { $('#dial').remove(); }};
|
|
|
|
$('<div id="dial"></div>').dialog(dlgOpts);
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
|
2013-06-12 08:40:01 +00:00
|
|
|
$('.idpr,.id_cr').on('click', function(){
|
2011-06-30 15:30:43 +00:00
|
|
|
//e.preventDefault();
|
|
|
|
var n = $(this).attr('id');
|
|
|
|
|
|
|
|
if ($('#p'+n).css('display')=='none'){
|
|
|
|
$('#p'+n).css('display', 'block');
|
|
|
|
} else {
|
|
|
|
$('#p'+n).css('display', 'none');
|
|
|
|
}
|
|
|
|
});
|
2011-08-30 07:11:39 +00:00
|
|
|
$('.tooltip').each(function(){
|
2011-08-31 14:22:23 +00:00
|
|
|
var title = $(this).attr('title');
|
2011-09-01 13:56:31 +00:00
|
|
|
var width = $(this).attr('wdth');
|
2011-08-23 15:20:02 +00:00
|
|
|
$(this).attr('title', '');
|
2011-08-30 07:11:39 +00:00
|
|
|
$(this).qtip({
|
2011-09-01 16:05:17 +00:00
|
|
|
solo:true,
|
2011-08-23 15:20:02 +00:00
|
|
|
content: title,
|
2012-12-23 17:34:25 +00:00
|
|
|
style: { width: width },
|
|
|
|
position: { at: "bottom center", my: "top center" }
|
2011-08-26 14:02:45 +00:00
|
|
|
});
|
|
|
|
});
|
2013-05-17 14:03:45 +00:00
|
|
|
$(function() {
|
|
|
|
$( "#radio" ).buttonset();
|
2013-06-12 08:40:01 +00:00
|
|
|
$("#radio1").trigger('click');
|
2013-05-17 14:03:45 +00:00
|
|
|
});
|
|
|
|
$('.radio').on('click', function() {
|
|
|
|
$('.lang_img').fadeOut();
|
|
|
|
$.alink = this.value.toLowerCase();
|
|
|
|
$.alink_h = this.value;
|
2013-06-12 08:40:01 +00:00
|
|
|
$(".id_cr").attr("href","/giant/"+$.alink+"/Pays/"+location.pathname.match(/\/Pays\/([^\/]+)/)[1]+"/Type/"+$.alink_h+"/CompanyId/"+location.pathname.match(/\/CompanyId\/([^\/]+)/)[1]+"/Language/"+$('.lang0').text().substr($('.lang0').text().length - 2));
|
2013-05-17 14:03:45 +00:00
|
|
|
$(".lang").attr("src","/themes/default/images/drapeaux/"+$('.lang0').text().substr($('.lang0').text().length - 2)+".png");
|
|
|
|
$(".lang_val").val($('.lang0').text().substr($('.lang0').text().length - 2));
|
|
|
|
$('.'+$.alink+'').fadeIn(500);
|
|
|
|
});
|
2013-06-26 13:57:30 +00:00
|
|
|
$('select.lang_val').on('change', function() {
|
2013-05-17 14:03:45 +00:00
|
|
|
$('.lang_img').fadeOut();
|
2013-06-12 08:40:01 +00:00
|
|
|
$(".id_cr").attr("href","/giant/"+$.alink+"/Pays/"+location.pathname.match(/\/Pays\/([^\/]+)/)[1]+"/Type/"+$.alink_h+"/CompanyId/"+location.pathname.match(/\/CompanyId\/([^\/]+)/)[1]+"/Language/"+this.value);
|
2013-05-17 14:03:45 +00:00
|
|
|
$(".lang").attr("src","/themes/default/images/drapeaux/"+this.value+".png");
|
|
|
|
$('.'+$.alink+'').fadeIn(500);
|
|
|
|
});
|
2013-06-14 09:06:17 +00:00
|
|
|
|
2013-06-24 13:37:01 +00:00
|
|
|
$(function() {
|
|
|
|
$( ".monitor_but a,.retrive_but a" )
|
|
|
|
.button();
|
|
|
|
});
|
2013-06-26 13:57:30 +00:00
|
|
|
|
|
|
|
$('.retr').on('click', function(e){
|
|
|
|
e.preventDefault();
|
|
|
|
var title = $(this).attr('title');
|
|
|
|
var href = $(this).attr('href');
|
|
|
|
var dlgOpts = {
|
|
|
|
bgiframe: true,
|
|
|
|
title: title,
|
|
|
|
height: 241,
|
|
|
|
width: 250,
|
|
|
|
modal: true,
|
|
|
|
buttons: {'Envoyer': function() {$(location).attr('href',href+'/InternalOrderId/'+$("[name=InternalOrderId]").val()+'/StartFrom/'+$("[name=StartFrom]").val()+'/monitor_type/'+$.mon_type);},'Fermer': function() { $(this).dialog('close'); }},
|
|
|
|
close: function() { $(this).dialog('close'); }};
|
|
|
|
$('.dialog-form').dialog(dlgOpts);
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
if($('.mon_type').val()!='Order')
|
|
|
|
{
|
|
|
|
$('.int_order').fadeOut(500);
|
|
|
|
}
|
|
|
|
|
|
|
|
$('select.mon_type').on('change', function() {
|
|
|
|
$.mon_type = $(this).val();
|
|
|
|
if($(this).val()=='Order')
|
|
|
|
{
|
|
|
|
$('.int_order').fadeIn(500);
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
$('.int_order').fadeOut(500);
|
|
|
|
}
|
|
|
|
});
|
2011-06-30 15:30:43 +00:00
|
|
|
});
|