diff --git a/public_html/media/js/core.js b/public_html/media/js/core.js index 2d7123c5..e1487223 100644 --- a/public_html/media/js/core.js +++ b/public_html/media/js/core.js @@ -83,8 +83,8 @@ $(function() } } - $('form[data-confirm-text]').submit(confirmEvent); - $('a[data-confirm-text]').click(confirmEvent); + $('form.confirmable').submit(confirmEvent); + $('a.confirmable').click(confirmEvent); //simple action buttons @@ -123,7 +123,7 @@ $(function() //attach data from submit buttons to forms before .submit() gets called - $(':submit').each(function() + $('.submit').each(function() { $(this).click(function() { diff --git a/src/Controllers/PostController.php b/src/Controllers/PostController.php index 3c5e72cd..920181a2 100644 --- a/src/Controllers/PostController.php +++ b/src/Controllers/PostController.php @@ -511,7 +511,7 @@ class PostController throw new SimpleException('Thumbnail file is not readable'); $this->context->layoutName = 'layout-file'; - $this->context->transport->cacheDaysToLive = 30; + $this->context->transport->cacheDaysToLive = 365; $this->context->transport->mimeType = 'image/jpeg'; $this->context->transport->fileHash = 'thumb' . md5($name . filemtime($path)); $this->context->transport->filePath = $path; diff --git a/src/Views/auth-login.phtml b/src/Views/auth-login.phtml index c48fc6c7..becf533b 100644 --- a/src/Views/auth-login.phtml +++ b/src/Views/auth-login.phtml @@ -16,7 +16,7 @@