Subversion Repositories SmartDukaan

Rev

Rev 21017 | Rev 21019 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21017 Rev 21018
Line 1... Line 1...
1
<script type="text/javascript">
1
<script type="text/javascript">
2
$(function(){
2
$(function(){
3
	$('a.mk_activate').on('click', function(){
3
	$('a.mk_activate').on('click', function(){
4
		this.style.pointerEvents = 'none';
4
		this.style.pointerEvents = 'none';
5
		clickedUserId = $(this).closest('th').find('input').val();
-
 
6
		if(isNan((Number)clickedUserId)){
-
 
7
			alert("User id should be Number");
-
 
8
		}else {
-
 
9
			window.location="/admin/retailers/activate/" + $(this).data("retailerid") + "/" + clickedUserId;
5
		window.location="/admin/retailers/activate/" + $(this).data("retailerid") + "/" + clickedUserId;
10
		}
-
 
11
		this.style.pointerEvents = 'auto';
6
		this.style.pointerEvents = 'auto';
12
		return false;
7
		return false;
13
	}
8
	}
14
});
9
});
15
</script>
10
</script>