Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax({
- type: "POST",
- url: servlet,
- data: data,
- contentType: "application/x-www-form-urlencoded;charset=ISO-8859-1",
- beforeSend: function(stm){
- $(alert_layer).slideUp();
- $(loading_layer).html("<img src=\"intranet/img/ajax-loader.gif\"> Carregando Dados");
- $(loading_layer).show();
- },
- error: function(){
- $(alert_layer).html('Não foi possível carregar a interface, por favor tente novamente');
- $(alert_layer).slideDown();
- $(loading_layer).fadeOut();
- },
- success: function(response){
- $(alert_layer).slideUp();
- $(loading_layer).fadeOut();
- if($.isFunction(callback)){
- callback(response,data,content_layer);
- } else {
- $(content_layer).html(response);
- }
- try{
- divSlideUp(options.id,options.button, content_layer);
- }catch(err){
- if(($(content_layer).css("display") == "none")){
- $(content_layer).show();
- }
- }
- var id_cliente = update.substring(19);
- $("#detalhesCliente"+id_cliente+" , #pesquisados_"+id_cliente).expose({
- color: '#8F8F8F',
- opacity: 0.9,
- closeOnClick: false,
- onLoad: function() {
- $('#close-expose-'+options.id).show();
- $(".date-pick").datepicker($.extend({},
- $.datepicker.regional["pt-BR"], {
- buttonImage: "intranet/img/calendar.gif",
- showOn: "button",
- buttonImageOnly: true
- }));
- },
- onClose: function(){
- $('#consulta_container_'+options.id).hide();
- $('#close-expose-'+options.id).hide();
- }
- });
- $.expose.getMask().css({
- height: '0'
- });
- $.expose.getMask().css({
- height: $(document).height()+'px'
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement