function show(data) {
            //sakrivamo formu za insert
            $("#insert-form").hide();
            var url = window.location.href;
            console.log(url);
            let form = `<div class="card my-4" id="edit-form">
    <h5 class="card-header">Izmenite komentar:</h5>
    <div class="card-body">
            <div class="form-group">
                <textarea name="content" id="content" class="form-control" rows="4" placeholder="Poruka" >${data.content}</textarea>
                <p id="opis"></p>
            </div>
        <button class="btn btn-outline-secondary" data-id="${data.id}" id="editCom">Ažuriraj</button>
         <a href="${url}" class='btn btn-outline-secondary'>Otkaži</a>
    </div>
    <div id="poruka"></div>
</div>`;
            $("#edit-form").html(form);
        }
///////////////prikaz komentara u formi za edit/////////////
prikaz komentara u formi za edit
prikaz komentara u formi za edit
function show(data) {
            $("#insert-form").hide();
            var url = window.location.href;
            console.log(url);
            let form = `<div class="card my-4" id="edit-form">
    <h5 class="card-header">Izmenite komentar:</h5>
    <div class="card-body">
            <div class="form-group">
                <textarea name="content" id="content" class="form-control" rows="4" placeholder="Poruka" >${data.content}</textarea>
                <p id="opis"></p>
            </div>
        <button class="btn btn-outline-secondary" data-id="${data.id}" id="editCom">Ažuriraj</button>
         <a href="${url}" class='btn btn-outline-secondary'>Otkaži</a>
    </div>
    <div id="poruka"></div>
</div>`;
            $("#edit-form").html(form);
        }
function show ( data ) { $ ( "#insert-form" ) . hide ( ) ; var url = window . location . href ; console . log ( url ) ; let form = ` ${ data . content } ${ data . id } ${ url } ` ; $ ( "#edit-form" ) . html ( form ) ; }
prikaz komentara u formi za edit
prikaz komentara u formi za edit
//sakrivamo formu za insert