Subversion Repositories SmartDukaan

Rev

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

Rev 21023 Rev 21024
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('td').find('input').val();
5
		clickedUserId = $(this).closest('tr').find('input').val();
6
		if(clickedUserId != ""){
6
		if(clickedUserId != ""){
7
			window.location="/admin/retailers/activate/" + $(this).data("retailerid") + "/" + clickedUserId;
7
			window.location="/admin/retailers/activate/" + $(this).data("retailerid") + "/" + clickedUserId;
8
			this.style.pointerEvents = 'auto';
8
			this.style.pointerEvents = 'auto';
9
		} else {
9
		} else {
10
			alert("User id is required for activation");
10
			alert("User id is required for activation");