From 8945e3b64a5a0a2799c80d9c646d4faed10fd4d9 Mon Sep 17 00:00:00 2001 From: BOHUNG Date: Mon, 9 Dec 2019 00:38:40 +0800 Subject: [PATCH] fix js bug --- app/assets/javascripts/cancer_predict.js | 141 ++++++++++++----------- 1 file changed, 75 insertions(+), 66 deletions(-) diff --git a/app/assets/javascripts/cancer_predict.js b/app/assets/javascripts/cancer_predict.js index 813f0f8..6e7224a 100644 --- a/app/assets/javascripts/cancer_predict.js +++ b/app/assets/javascripts/cancer_predict.js @@ -1,4 +1,30 @@ $(document).ready(function(){ + Array.prototype.remove_item_from_array = function(){ + var result_array = this; + for(var i=0;i