Skip to content

Commit

Permalink
Reverse single ticks to double quotes for js
Browse files Browse the repository at this point in the history
single ticks in the translations were breaking the javascript that was setting some of the html using those values
  • Loading branch information
wilpig committed Oct 3, 2024
1 parent 39adeb8 commit 544b34d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zone.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ function preview(img, selection) {
var form=$(this).parents('form');
var btn=$(this);
<?php
print " var dialog=$('<div>').prop('title','".__("Verify Delete Zone")."').html('<p><span class=\"ui-icon ui-icon-alert\" style=\"float:left; margin:0 7px 20px 0;\"></span><span></span></p>');";
print " dialog.find('span + span').html('".__("This Zone will be deleted and there is no undo. Assets within the zone will remain as members of the Data Center.")."<br><br>".__("Are you sure?")."');";
print ' var dialog=$("<div>").prop("title","'.__("Verify Delete Zone").'").html("<p><span class=\"ui-icon ui-icon-alert\" style=\"float:left; margin:0 7px 20px 0;\"></span><span></span></p>");';
print ' dialog.find("span + span").html("'.__("This Zone will be deleted and there is no undo. Assets within the zone will remain as members of the Data Center.").'<br><br>'.__("Are you sure?").'");';
?>
dialog.dialog({
resizable: false,
Expand Down

0 comments on commit 544b34d

Please sign in to comment.