function edit_color(){NProgress.start();var token=$('#token').val();var color=$('#color').val();color=encodeURIComponent(color);$.ajax({type:"POST",url:"../modules_extra/colors/ajax/actions.php",data:"phpaction=1&token="+token+"&edit_color=1&color="+color,dataType: "json",success:function(result){NProgress.done();if(result.status == 1) {setTimeout(show_ok, 500);alert(result.message);} else {setTimeout(show_error, 500);alert(result.message);}}});}