Showing 2 of 175 total issues
Function send
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.send = function(username, password){
$("#login img").hide();
if (working) return;
working = true;
var $this = $('#login'),
Function save_fruit
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.save_fruit = function(){
$scope.$parent.loading = true;
if($scope.$parent.fruit._id === undefined){
//Adding fruit -> POST
fruitFactory.save({