Advertisement
Guest User

User tag operation

a guest
Aug 6th, 2012
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Event.observe(document, 'widgets:load', function()
  2. {
  3.     new Ajax.Request('/users/current.json',
  4.     {
  5.         method:'GET',asynchronous: true,onSuccess: function(transport)
  6.         {
  7.             var obj = transport.responseText.evalJSON();
  8.             tags = obj['current_tags'];
  9.                        
  10.             if (tags.search("expired")<0)
  11.             {
  12.                 $j('.tab_new').show();
  13.                 $j('.tab_requests').show();
  14.             }
  15.         };
  16.     });      
  17. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement