1
0
mirror of https://github.com/Tygs/0bin.git synced 2023-08-10 21:13:00 +03:00
This commit is contained in:
Rémy HUBSCHER
2013-01-19 18:54:51 +01:00
2 changed files with 14 additions and 8 deletions

View File

@ -452,7 +452,7 @@ $('.btn-primary').live("click", function(e){
bar.set('Sending...', '95%');
var data = {content: content, expiration: expiration};
var sizebytes = zerobin.count(JSON.stringify(data));
var oversized = sizebytes > 95000; // 100kb - the others header information
var oversized = sizebytes > zerobin.max_size; // 100kb - the others header information
var readableFsize = Math.round(sizebytes / 1024);
var readableMaxsize = Math.round(zerobin.max_size / 1024);
@ -461,7 +461,7 @@ $('.btn-primary').live("click", function(e){
$form.prop('disabled', false);
zerobin.message('error',
('The encrypted file was <strong class="file-size">' + readableFsize +
'</strong>KB. You have reached the maximum size limit of 93 KB.'),
'</strong>KB. You have reached the maximum size limit of '+readableMaxsize+'KB.'),
'Warning!', true);
return;
}