Skip to content

Commit

Permalink
Edit unique title validation failure message (publiclab#8416)
Browse files Browse the repository at this point in the history
* Add .deepsource.toml

* Delete .deepsource.toml

* edit failure message

Co-authored-by: DeepSource Bot <[email protected]>
  • Loading branch information
2 people authored and lagunasmel committed Mar 2, 2021
1 parent 986bc81 commit 180403b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/editor/rich.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@

<div id="imageButtons">
<input type="file" name="image[photo]" id="thumbnail-img">
<label for="thumbnail-img" class="thumbnailBtn">
<label for="thumbnail-img" class="thumbnailBtn">
<span>Choose a file…</span>
</label>
<button id="removeFile" class="thumbnailBtn">Remove File</button>
Expand Down Expand Up @@ -367,7 +367,7 @@
} else if (response && Object.keys(response).length > 0) {
$('.ple-errors').html('<div class="alert alert-danger"></div>');
Object.keys(response).forEach(function(key, i) {
$('.ple-errors .alert').append('<p><b>' + key + '</b> </p>');
$('.ple-errors .alert').append('<p><b>' + '</b> </p>');
$('.ple-errors .alert p:last').append(response[key].join(', '));
});
window.scroll(0, 0);
Expand Down

0 comments on commit 180403b

Please sign in to comment.