Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

135
Views
Uncaught TypeError: Cannot read property 'toString' of undefined (@qb-multijob)
function changeButton(id,info){
    if (id === 'duty-button') {
        $(`#${id}`).html(($(`#${id}`).html() === "Select") ? "<i class='bi bi-patch-check'></i>" : "Select")
        $.post('https://qb-multijob/toggleDuty');
    } else if (id == 'delete-button') {
        $(`#${info}`).parent().parent().remove();

        if ($(`.jobs`).children().length === 0) {
            $('.jobs').html('<h3 style="margin: auto;">You have no jobs</h3>');
        } 
        $.post('https://qb-multijob/deleteJob', JSON.stringify({
            job: info.toString()
        }));
    } else {
        $('#duty-button').html("Select")

        $('.job-selectButton').each(function(index) {
            $(this).replaceWith(`<button class="button job-selectButton" id="${$(this).attr('id')}" data-grade="${$(this).data('grade')}">Select</button>`)
        })

        $(`#${id}`).replaceWith( `
            <div class="job-selectButton" id="${id}" data-grade="${info}">
                <button class="half-button" id="delete-button" data-name="${id}" >
                    <i class='bi bi-trash'></i>
                </button>
                <button class="half-button">
                    <i class='bi bi-patch-check'></i>
                </button>
            </div>
        `)
        $.post('https://qb-multijob/changeJob', JSON.stringify({
            job: id.toString(),
            grade: info.toString()
        }));
    }
}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!