Changeset 9579

Show
Ignore:
Timestamp:
05/03/10 08:22:07 (3 years ago)
Author:
mbrevda
Message:

re #4147; added error even to ajax call, although I dont see that its working

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.8/directory/page.directory.php

    r9578 r9579  
    7676  $.ajax({ 
    7777    url: location.href, 
    78     data: 'ajaxgettr='+user+'&quietmode=1&skip_astman=1', 
     78    data: 'ajaxgettr='+user+'&quietmode=1&skip_astman=1&restrictmods=directory/core/recordings', 
    7979    success: function(data) { 
    8080      $('.result').html(data); 
    8181      $('#dir_entires_tbl').last().append(data); 
    82     } 
     82    }, 
     83    error: function(XMLHttpRequest, textStatus, errorThrown) { 
     84      var msg = "<?php echo _("An Error occurred trying to contact the server adding a row, no reply.")?>"; 
     85      alert(msg); 
     86    } 
    8387}); 
    8488