proffapt / fERP

Stands for Feedback-ERP. Automation extension for IIT KGP ERP feedback
https://youtu.be/uUf2_91boco
GNU Affero General Public License v3.0
39 stars 13 forks source link

Reduce code duplication #36

Closed ShivamBisen closed 4 months ago

ShivamBisen commented 6 months ago

created a function

function setRandomValueFromArray(array, index) { textBox[index].value = array[Math.floor(Math.random() * array.length)]; }

as it was repeating regularly in negative_feedback.js and positive_feedback.js

ShivamBisen commented 6 months ago

I have made the changes requested, please review it once again.