Subversion Repositories SmartDukaan

Rev

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

Rev 21010 Rev 21011
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
		clickedUserId = $(this).closest('th').find('input').val();
5
		clickedUserId = $(this).closest('th').find('input').val();
5
		if(isNan((Number)clickedUserId)){
6
		if(isNan((Number)clickedUserId)){
6
			alert("User id should be Number");
7
			alert("User id should be Number");
7
			return false
-
 
8
		}else {
8
		}else {
9
			window.location=$(this).attr("href") + "/" + clickedUserId;
9
			window.location=$(this).attr("href") + "/" + clickedUserId;
10
			return true;
-
 
11
		}
10
		}
-
 
11
		this.style.pointerEvents = 'auto';
-
 
12
		return false;
12
	}
13
	}
13
});
14
});
14
</script>
15
</script>
15
<div class="container">
16
<div class="container">
16
	<div class = "row">
17
	<div class = "row">