scratch – Diff between revs 126 and 128

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 126 Rev 128
Line 87... Line 87...
87 <!-- This is used as the file preview template --> 87 <!-- This is used as the file preview template -->
88 <div> 88 <div>
89 <span class="preview"><img src="img/fileholder.svg" width="58" alt="Upload file thumbnail" data-dz-thumbnail></span> 89 <span class="preview"><img src="img/fileholder.svg" width="58" alt="Upload file thumbnail" data-dz-thumbnail></span>
90 </div> 90 </div>
91 <div> 91 <div>
92 <p id="name" class="name" data-dz-name></p> 92 <p id="filename" class="filename" data-dz-name></p>
93 <div class="input-group"> 93 <div class="input-group">
94 <input id="URL" type="text" class="form-control" readonly> 94 <input id="URL" type="text" class="form-control" readonly>
95 <span class="input-group-btn"> 95 <span class="input-group-btn">
96 <button id="btn-mailto" class="btn btn-default" type="button"><i class="glyphicon glyphicon-envelope"></i></button> 96 <button id="btn-mailto" class="btn btn-default" type="button"><i class="glyphicon glyphicon-envelope"></i></button>
97 </span> 97 </span>
Line 209... Line 209...
209 209
210 const tags = $('#' + tagsBoxID) 210 const tags = $('#' + tagsBoxID)
Line 211... Line 211...
211 .tagsinput('items'); 211 .tagsinput('items');
-   212
-   213 formData.append('tags', JSON.stringify(tags));
-   214
-   215 // And disable the tags bar.
-   216 file
-   217 .previewElement
-   218 .querySelector('#' + tagsBoxID)
212 219 .setAttribute('disabled', 'disabled');
213 formData.append('tags', JSON.stringify(tags)); 220
214 }).on('addedfile', (file) => { 221 }).on('addedfile', (file) => {
215 // Hookup the start button. 222 // Hookup the start button.
216 file.previewElement.querySelector('.start').onclick = () => { 223 file.previewElement.querySelector('.start').onclick = () => {