mirror of
https://framagit.org/fiat-tux/hat-softwares/lutim.git
synced 2026-06-22 11:05:04 +02:00
Add files extension to gallery URL
This allows to have extensions in the zip package. Plus do not add to the gallery URL if file is an xcf (gimp) in order to prevent zip generation fail.
This commit is contained in:
@@ -199,7 +199,9 @@
|
||||
$('.messages').append(buildMessage(data.success, data.msg));
|
||||
$('#del-'+data.msg.real_short).on('click', delImage);
|
||||
if (data.success) {
|
||||
addToShortHash(data.msg.short);
|
||||
if (data.msg.ext !== 'xcf') {
|
||||
addToShortHash(data.msg.short+'.'+data.msg.ext);
|
||||
}
|
||||
$('.close').unbind('click', evaluateCopyAll);
|
||||
$('.close').on('click', evaluateCopyAll);
|
||||
$('input[type=\'text\']').unbind("click", selectInput);
|
||||
@@ -238,7 +240,9 @@
|
||||
$('.messages').prepend('<div class="col-xs-12 col-sm-11 col-sm-offset-1"><a id="copy-all" href="#" class="btn btn-info" onClick="copyAllToClipboard();"><%= l('Copy all view links to clipboard') %></a></div>');
|
||||
}
|
||||
$('#lutim-file-url').val('');
|
||||
addToShortHash(data.msg.short);
|
||||
if (data.msg.ext !== 'xcf') {
|
||||
addToShortHash(data.msg.short+'.'+data.msg.ext);
|
||||
}
|
||||
$('.close').unbind('click', evaluateCopyAll);
|
||||
$('.close').on('click', evaluateCopyAll);
|
||||
addItem(data.msg);
|
||||
|
||||
Reference in New Issue
Block a user