git.p6c8.net
/
jirafeau_project.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[FEATURE] Add support for Chinese (Taiwan) lang
[jirafeau_project.git]
/
lib
/
functions.js.php
diff --git
a/lib/functions.js.php
b/lib/functions.js.php
index 241a8e4c86ec2b985e414ad747507d5f32e282b7..1f83ae75d08343d3f36b3c9385b16e01db7d7d89 100644
(file)
--- a/
lib/functions.js.php
+++ b/
lib/functions.js.php
@@
-145,11
+145,11
@@
function show_link (reference, delete_code, crypt_key, date)
// Email link
var filename = document.getElementById('file_select').files[0].name;
// Email link
var filename = document.getElementById('file_select').files[0].name;
- var b = encodeURIComponent("<?php echo t("DL"); ?> \"" + filename + "\":") + "%0D";
- b += encodeURIComponent(web_root + download_link_href) + "%0D";
+ var b = encodeURIComponent("<?php echo t("DL"); ?> \"" + filename + "\":") + "%0D"
+ "%0A"
;
+ b += encodeURIComponent(web_root + download_link_href) + "%0D"
+ "%0A"
;
if (false == isEmpty(date))
{
if (false == isEmpty(date))
{
- b += "%0D" +
encodeURIComponent("<?php echo t("VALID_UNTIL"); ?>: " + date.format('YYYY-MM-DD hh:mm (GMT O)')) + "%0D
";
+ b += "%0D" +
"%0A" + encodeURIComponent("<?php echo t("VALID_UNTIL"); ?>: " + date.format('YYYY-MM-DD hh:mm (GMT O)')) + "%0D" + "%0A
";
document.getElementById('upload_link_email').href = "mailto:?body=" + b + "&subject=" + encodeURIComponent(filename);
}
document.getElementById('upload_link_email').href = "mailto:?body=" + b + "&subject=" + encodeURIComponent(filename);
}
@@
-316,17
+316,17
@@
function add_time_string_to_date(d, time)
}
if (time == 'month')
{
}
if (time == 'month')
{
-
d.setSeconds (d.getSeconds() + 24192
00);
+
d.setSeconds (d.getSeconds() + 25920
00);
return true;
}
if (time == 'quarter')
{
return true;
}
if (time == 'quarter')
{
-
d.setSeconds (d.getSeconds() + 72576
00);
+
d.setSeconds (d.getSeconds() + 77760
00);
return true;
}
if (time == 'year')
{
return true;
}
if (time == 'year')
{
-
d.setSeconds (d.getSeconds() + 290304
00);
+
d.setSeconds (d.getSeconds() + 315360
00);
return true;
}
return false;
return true;
}
return false;
@@
-742,8
+742,10
@@
function copyLinkToClipboard(link_id) {
}
function addCopyListener(button_id, link_id) {
}
function addCopyListener(button_id, link_id) {
- document.getElementById(button_id)
+ if(document.getElementById(button_id)){
+ document.getElementById(button_id)
.addEventListener("click", function() {
copyLinkToClipboard(link_id);});
.addEventListener("click", function() {
copyLinkToClipboard(link_id);});
+ }
}
// @license-end
}
// @license-end
patrick-canterino.de