We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cb4717 commit 1d032b3Copy full SHA for 1d032b3
static/webapp.js
@@ -2,14 +2,15 @@
2
3
// Adds a new image to the image picker from the given return json of an upload
4
function add_thumbnails(data) {
5
- key_list = get_keys()
+ var key_list = get_keys();
6
for (var i = 0; i < data.length; i++) {
7
file_data = data[i];
8
if (key_list.includes(file_data["file_name"]) == false) {
9
$('#thumbnails select').prepend($("<option></option>")
10
.attr("data-img-src", file_data["file_name"])
11
.attr("data-img-label", file_data["caption"])
12
.attr("data-img-alt", file_data["caption"])
13
+ .attr("value", file_data["file_name"])
14
.text(file_data["caption"]));
15
}
16
@@ -205,6 +206,6 @@ $(function() {
205
206
$("#file-input").val("");
207
208
})
- })
209
+ });
210
211
});
0 commit comments