Linted, fixed github link not working
This commit is contained in:
		@@ -2,16 +2,16 @@ var $run = $('h1, h3, .options, a');
 | 
			
		||||
 | 
			
		||||
$('li[contenteditable]').click(function(e) {
 | 
			
		||||
  if($(this).html() == 'عدد وارد کنید') $(this).html(' ');
 | 
			
		||||
})
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
$('li[contenteditable]').on('keydown', function(e) {
 | 
			
		||||
  if(e.keyCode !== 8 && isNaN(+e.key)) return e.preventDefault();
 | 
			
		||||
})
 | 
			
		||||
});
 | 
			
		||||
$('li[contenteditable]').on('keyup', function(e) {
 | 
			
		||||
  $(this).data('val', /\d*/.exec($(this).html()));
 | 
			
		||||
})
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
$('a').click(function(e) {
 | 
			
		||||
$('a[href="#"]').click(function(e) {
 | 
			
		||||
  e.preventDefault();
 | 
			
		||||
  var $this = $(this);
 | 
			
		||||
 | 
			
		||||
@@ -21,13 +21,13 @@ $('a').click(function(e) {
 | 
			
		||||
  $.ajax({
 | 
			
		||||
    url: url,
 | 
			
		||||
    success: success
 | 
			
		||||
  })
 | 
			
		||||
})
 | 
			
		||||
  });
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
$('li').click(function() {
 | 
			
		||||
  $(this).parent().find('li').removeClass('active');
 | 
			
		||||
  $(this).addClass('active');
 | 
			
		||||
})
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
function success(ipsum) {
 | 
			
		||||
  $('a').removeClass('running');
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user