Advertisement
Guest User

Untitled

a guest
Jan 25th, 2012
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function ($) {
  2. Drupal.behaviors.kt_vusers = {
  3.     attach: function(context, settings) {
  4.    
  5.         jQuery("#vishalform").hide();
  6.  
  7.  
  8.         jQuery('#edit-active-2').click(function(){
  9.            
  10.             jQuery("#edit-image-ajax-wrapper").hide();
  11.             jQuery(".form-item-body").hide();
  12.            
  13.            
  14.         });
  15.        
  16.         jQuery('#edit-active-0').click(function(){
  17.            
  18.             jQuery("#edit-image-ajax-wrapper").show();
  19.             jQuery(".form-item-body").show();
  20.            
  21.            
  22.         });
  23.  
  24.        
  25.         jQuery('#edit-active-1').click(function(){
  26.            
  27.             jQuery("#edit-image-ajax-wrapper").show();
  28.             jQuery(".form-item-body").show();
  29.            
  30.            
  31.         });    
  32.  
  33.  
  34.         jQuery("#postbtn").click(function() {
  35.             var newvishaloverlay = jQuery('<div id="newvishaloverlay">');
  36.                
  37.                 jQuery('body').append(newvishaloverlay);
  38.                 jQuery("#vishalform").show();
  39.  
  40.                
  41.  
  42.  
  43.                 jQuery("#vishalcross").click(function() {
  44.            
  45.                     jQuery(newvishaloverlay).remove();
  46.                     jQuery("#vishalform").hide();
  47.  
  48.                 });
  49.  
  50.            
  51.  
  52.  
  53.         });
  54.  
  55.  
  56.  
  57.    
  58.     }
  59. };
  60.  
  61. })(jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement