Changeset df7f390 for frontend/js/siteFlow.js
- Timestamp:
- 01/13/25 14:18:51 (2 weeks ago)
- Branches:
- master
- Parents:
- 0a7426e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
frontend/js/siteFlow.js
r0a7426e rdf7f390 168 168 .then(data => { 169 169 console.log('Option saved:', data); 170 // Update the UI to reflect that the option was saved171 170 updateFavoriteButtons(); 172 171 }) … … 243 242 tripDiv.appendChild(price); 244 243 244 // Add change indicator 245 if(trip.changes && trip.changes.length > 0) { 246 const changeDiv = document.createElement('div'); 247 changeDiv.classList.add('changes'); 248 trip.changes.forEach(change => { 249 const changeParagraph = document.createElement('p'); 250 changeParagraph.textContent = `${change.attribute} се смени од ${change.oldValue} во ${change.newValue}`; 251 changeDiv.appendChild(changeParagraph); 252 }); 253 tripDiv.appendChild(changeDiv); 254 } 255 245 256 savedTripsList.appendChild(tripDiv); 246 257 }); 247 248 258 249 259 const priceChangesList = document.getElementById('priceChangesList'); … … 258 268 }); 259 269 } else { 260 priceChangesList.textContent = "нема промена на цената.";270 priceChangesList.textContent = "нема промена во зачуваните патувања."; 261 271 } 262 272 }) … … 265 275 }); 266 276 } 277 267 278 function removeFromSaved(optionId) { 268 279 const userEmail = sessionStorage.getItem('user').replace(/^"|"$/g, '');
Note:
See TracChangeset
for help on using the changeset viewer.