Advertisement
tribulant

WPML Issue

Oct 29th, 2013
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. jQuery(document).ajaxSuccess(function(evt, request, settings) {
  2.        
  3.         if(typeof settings === 'undefined' || typeof settings.data === 'undefined')  return;
  4.  
  5.         if(settings.data.search('action=add-tag') != -1 || settings.data.search('action=delete-tag') != -1 ){
  6.             jQuery('#icl_subsubsub').load(location.href + ' #icl_subsubsub', function(resp){
  7.                 var p1 = resp.indexOf('<span id="icl_subsubsub">');
  8.                 var p2 = resp.indexOf('<\\/span>', p1);
  9.                 jQuery('#icl_subsubsub').html(resp.substr(p1+25, p2-p1-25).replace(/\\/g, ''));    
  10.             });
  11.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement