Changeset 1587


Ignore:
Timestamp:
Oct 3, 2010, 7:42:18 PM (10 years ago)
Author:
teymour
Message:

OUps oublié lors de la simplification

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/solr/templates/searchSuccess.php

    r1586 r1587  
    9494timer4update = null;
    9595function realAjaxUpdate(lien) {
    96   url = document.location+'';
    97   url = url.replace(/\?.*/, '');
    98   lien = url+lien+'&ajax=1';
    99   $('#results_container').load(lien, function() {$('#results_container').css('opacity', '1');});
     96  lien += '&ajax=1';
     97  $('#results_container').load(lien, function() {$('#results_container').fadeIn(200);});
    10098}
    10199function ajaxUpdateFor(lien) {
     
    104102    timer4update = null;
    105103  }
    106   $('#results_container').css('opacity', '0.5');
    107   timer4update = setTimeout('realAjaxUpdate("'+lien+'")', 5000);
     104  $('#results_container').fadeTo(1000, 0.5);
     105  timer4update = setTimeout('realAjaxUpdate("'+lien+'")', 2500);
    108106}
    109107
Note: See TracChangeset for help on using the changeset viewer.