Subversion Repositories SmartDukaan

Rev

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

Rev 14098 Rev 14408
Line 29... Line 29...
29
        submit : 'OK',
29
        submit : 'OK',
30
      	submitdata : function(value, settings) {
30
      	submitdata : function(value, settings) {
31
	       return {oid: $(this).data('oid')};
31
	       return {oid: $(this).data('oid')};
32
	   }
32
	   }
33
    });
33
    });
-
 
34
    $('.sqlslecter').on('click',function(){
-
 
35
    	$('#UserSql').html($(this).parent().siblings('.updatesql').html());
-
 
36
    })
-
 
37
    $('.pushtoalll').on('click',function(){
-
 
38
    	var that = $(this);
-
 
39
    	$('.userIds').each(function(){
-
 
40
    		$(this).prop('checked',$(that).prop('checked'));
-
 
41
    	})
-
 
42
    });
-
 
43
    $('.notifyusers').on('click',function(){
-
 
44
    	if($('#UserMessage').val().length == 0 || $('#UserMessage').val()==''){
-
 
45
    		alert('Enter a message first');
-
 
46
    		return false;
-
 
47
    	}else{
-
 
48
    		$('#UserPushForm').submit();
-
 
49
    	}
-
 
50
    })    
34
});
51
});
35
function isNumeric(value) {
52
function isNumeric(value) {
36
  if (value == null || !value.toString().match(/^[-]?\d*\.?\d*$/)) return false;
53
  if (value == null || !value.toString().match(/^[-]?\d*\.?\d*$/)) return false;
37
  return true;
54
  return true;
38
}
55
}
39
56