Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function ($) {
- Drupal.behaviors.kt_vusers = {
- attach: function(context, settings) {
- jQuery("#vishalform").hide();
- jQuery('#edit-active-2').click(function(){
- jQuery("#edit-image-ajax-wrapper").hide();
- jQuery(".form-item-body").hide();
- });
- jQuery('#edit-active-0').click(function(){
- jQuery("#edit-image-ajax-wrapper").show();
- jQuery(".form-item-body").show();
- });
- jQuery('#edit-active-1').click(function(){
- jQuery("#edit-image-ajax-wrapper").show();
- jQuery(".form-item-body").show();
- });
- jQuery("#postbtn").click(function() {
- var newvishaloverlay = jQuery('<div id="newvishaloverlay">');
- jQuery('body').append(newvishaloverlay);
- jQuery("#vishalform").show();
- jQuery("#vishalcross").click(function() {
- jQuery(newvishaloverlay).remove();
- jQuery("#vishalform").hide();
- });
- });
- }
- };
- })(jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement