Skip to content

Commit 1a78140

Browse files
committed
fix JS string interpolation
1 parent 1d85619 commit 1a78140

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

webroot/admin/content.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
const $prefix = '<?php echo $CONFIG["site"]["prefix"]; ?>';
5555
$("#pageForm > select[name=pageSel]").change(function(e) {
5656
$.ajax({
57-
url: "${prefix}/admin/ajax/get_page_contents.php?pageid=" + $(this).val(),
57+
url: `${prefix}/admin/ajax/get_page_contents.php?pageid=` + $(this).val(),
5858
success: function(result) {
5959
mainEditor.setData(result);
6060
}});

webroot/panel/modal/new_pi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
var searchWrapper = $("div.searchWrapper");
2222
const $prefix = '<?php echo $CONFIG["site"]["prefix"]; ?>';
2323
$.ajax({
24-
url: "${prefix}/panel/modal/pi_search.php?search=" + $(this).val(),
24+
url: `${prefix}/panel/modal/pi_search.php?search=` + $(this).val(),
2525
success: function(result) {
2626
searchWrapper.html(result);
2727

webroot/panel/new_account.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@
174174
var searchWrapper = $("div.searchWrapper");
175175
const $prefix = '<?php echo $CONFIG["site"]["prefix"]; ?>';
176176
$.ajax({
177-
url: "{$prefix}/panel/modal/pi_search.php?search=" + $(this).val(),
177+
url: `${prefix}/panel/modal/pi_search.php?search=` + $(this).val(),
178178
success: function(result) {
179179
searchWrapper.html(result);
180180

0 commit comments

Comments
 (0)