Skip to content

Commit acaa47d

Browse files
author
Russell Maier
committed
ups
1 parent dbae011 commit acaa47d

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

en/add-project-images.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ function uploadSuccess(data) {
360360
var directoryPathText = data.thumbnail_paths[i].substring(data.thumbnail_paths[i].lastIndexOf('/') + 1);
361361
var captionText = directoryPathText + ' | ' + data.thumbnail_file_sizes[i].toFixed(1) + ' KB | ' + data.main_file_sizes[i].toFixed(1) + ' KB';
362362
var fullUrlText = data.full_urls[i];
363-
var modalCaption = captionText = directoryPathText + ' | ' + data.main_file_sizes[i].toFixed(1) + ' KB';
363+
var modalCaption = captionText = directoryPathText + ' | ' + data.main_file_sizes[i].toFixed(1) + ' Kb | ' + data.thumbnail_file_sizes[i].toFixed(1) + ' Kb';
364364

365365
galleryHTML += '<div class="gal-photo" onclick="viewGalleryImage(\'' + fullUrlText + '\', \'' + modalCaption + '\')">';
366366
galleryHTML += '<img src="' + data.thumbnail_paths[i] + '" alt="' + directoryPathText + '">';

en/add-project.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
<option value="art" data-lang-id="011-art">Art</option>
189189
<option value="other" data-lang-id="011-other">Other</option>
190190
</select>
191-
<br>
191+
<br><br>
192192
<!--ERROR-->
193193
<div id="project-type-error-required" class="form-field-error" data-lang-id="000-field-required-error">This field is required.</div>
194194
</div>
@@ -204,7 +204,7 @@
204204
<option value="installation" data-lang-id="012-construction-installation">Installation</option>
205205
<option value="other" data-lang-id="012-other">Other</option>
206206
</select>
207-
<br>
207+
<br><br>
208208
<!--ERROR-->
209209
<div id="construction-type-error-required" class="form-field-error" data-lang-id="000-field-required-error">This field is required.</div>
210210
</div>
@@ -245,7 +245,7 @@
245245
<p class="form-caption" data-lang-id="016-location-caption">For privacy, please don't use your exact address. Choose your general neighbourhood or town. Project locations will be shown on our project map.</p>
246246

247247
<!--ERRORS-->
248-
<div id="description-error-required" class="form-field-error" data-lang-id="000-field-required-error">This field is required.</div>
248+
<div id="location-error-required" class="form-field-error" data-lang-id="000-field-required-error">This field is required.</div>
249249
</div>
250250

251251

@@ -344,7 +344,7 @@ function hasInvalidChars(value) {
344344

345345
// 11. Location Validation
346346
var location = document.getElementById('location_address').value.trim();
347-
displayError('description-error-required', location === '');
347+
displayError('location-error-required', location === '');
348348

349349
// If all validations pass, submit the form
350350
if (isValid) {

en/edit-project.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
<br><br>
186186
</div>
187187

188-
<form id="submit-form" method="post" action="" enctype="multipart/form-data">
188+
<form id="submit-form" method="post" action="" enctype="multipart/form-data" novalidate>
189189

190190

191191

@@ -366,7 +366,7 @@
366366

367367

368368
<!--ERRORS-->
369-
<div id="description-error-required" class="form-field-error" data-lang-id="000-field-required-error">This field is required.</div>
369+
<div id="location-error-required" class="form-field-error" data-lang-id="000-field-required-error">This field is required.</div>
370370
</div>
371371

372372
<input type="hidden" id="lat" name="latitude" value="<?php echo htmlspecialchars($project['location_lat'] ?? ''); ?>">
@@ -544,7 +544,7 @@ function hasInvalidChars(value) {
544544

545545
// 11. Location Validation
546546
var location = document.getElementById('location_address').value.trim();
547-
displayError('description-error-required', location === '');
547+
displayError('location-error-required', location === '');
548548

549549
// If all validations pass, submit the form
550550
if (isValid) {

subscription-system.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,15 @@ function checkRegistrationStatus() {
195195
name: nameInput.value,
196196
source: window.subSource, // Use the global value
197197
language: window.currentLanguage
198+
198199
};
199200
console.log('subSource before sending:', window.subSource);
200201
// Log the data to be sent
201202
console.log('Sending data to webhook:', JSON.stringify(data));
202203

203204
// Send data to the webhook
204205
fetch('https://hook.eu1.make.com/ou5swqynssfg1o64sjwjgywpcoymg4m1', {
206+
205207
method: 'POST',
206208
headers: {
207209
'Content-Type': 'application/json',

0 commit comments

Comments
 (0)