Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New to the CF scene
    Join Date
    Aug 2014
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    click not firing the event on mobile devices

    Hello,

    I have this situation with part of the code that works fine on desktop version but not in mobile. Here's the code, I really don't know where's the error.

    I appreciate any suggestion.

    Code:
    Wheel.prototype.buttonClick = function(){
    	//Getting button
    	var clickedButton = this.buttonCurrent();
    	clickedButton = this.elem.find("#"+this.wrapperId+"_button_"+clickedButton);
    
    	//Firing either 'href' attribute if setted, or the click delegate attached if not
    	var buttonHref = clickedButton.attr('href');
    	if (buttonHref != undefined && buttonHref != '#'){
    		if (clickedButton.attr('target') == '_blank'){
    			window.open(buttonHref);			
    		}
    		else{
    			window.location.href = buttonHref;
    		}
    	}
    	else{
    		clickedButton.click();
    	}
    };
    Thanks
    Last edited by judelgado; 09-09-2014 at 12:45 AM.


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •