]> git.p6c8.net - jirafeau_mojo42.git/commitdiff
fix elementid for expiration date
authorR.W <apollo@rw-net.de>
Mon, 24 Apr 2017 16:32:31 +0000 (16:32 +0000)
committerJerome Jutteau <j.jutteau@gmail.com>
Tue, 2 May 2017 20:56:13 +0000 (20:56 +0000)
lib/functions.js.php

index 0c9a0201a65f4a6299c71355d2bc3a8d035f91e8..7ac8c7696b754d6c49b45eb1835de798df1576f7 100644 (file)
@@ -154,14 +154,14 @@ function show_link (url, reference, delete_code, crypt_key, date)
     // Validity date
     if (isEmpty(date))
     {
     // Validity date
     if (isEmpty(date))
     {
-        document.getElementById('validity').style.display = 'none';
+        document.getElementById('date').style.display = 'none';
     }
     else {
         document.getElementById('date').innerHTML = '<span class="datetime" title="'
             + dateToUtcString(date) + ' (GMT)">'
             + date.format('YYYY-MM-DD hh:mm (GMT O)')
             + '</span>';
     }
     else {
         document.getElementById('date').innerHTML = '<span class="datetime" title="'
             + dateToUtcString(date) + ' (GMT)">'
             + date.format('YYYY-MM-DD hh:mm (GMT O)')
             + '</span>';
-        document.getElementById('validity').style.display = '';
+        document.getElementById('date').style.display = '';
     }
 
     // Preview link (if allowed)
     }
 
     // Preview link (if allowed)

patrick-canterino.de