Changed editing redirection.
This commit is contained in:
11
app/views/editSuccess.ejs
Normal file
11
app/views/editSuccess.ejs
Normal file
@@ -0,0 +1,11 @@
|
||||
<br>
|
||||
<div class="row center-align">
|
||||
<p>Vaš oglas je izmijenjen u Kivi bazi.</p>
|
||||
<br>
|
||||
<div class="row center-align">
|
||||
<img src="../assets/images/logo.svg" alt="kivi logo" width="160">
|
||||
</div>
|
||||
<br>
|
||||
<p>Poslali smo potvrdni email sa izmijenjenim detaljima oglasa na Vašu email adresu.</p>
|
||||
<a href="/" class="">Nova pretraga</a>
|
||||
</div>
|
||||
@@ -31,6 +31,7 @@
|
||||
<%- include("./publishEnd.ejs") %>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="editingRealEstate" id="editingRealEstate" value="">
|
||||
|
||||
|
||||
</form>
|
||||
@@ -89,6 +90,9 @@
|
||||
$(document).ready(function(){
|
||||
$('.tabs').tabs();
|
||||
|
||||
const editingRealEstate = <%- editingRealEstate %>;
|
||||
$("#editingRealEstate").val(editingRealEstate);
|
||||
|
||||
// Manual dropzone init
|
||||
const dropzoneOptions = {
|
||||
url: "/photos-upload", //can be a function that returns url ?
|
||||
|
||||
Reference in New Issue
Block a user