From a04ddc98d0392426de24c00814af30ca43ad7274 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 15 May 2023 12:12:24 +0200 Subject: [PATCH] wait #5930 @0.75 --- app/Jobs/Maintenance/CleanDownloads.php | 3 +++ app/SubForms/Link/Phone.php | 2 +- resources/linkeditor/js/linkeditor.utils.js | 2 +- resources/linkeditor/style/inc/_form.sass | 4 ++-- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/Jobs/Maintenance/CleanDownloads.php b/app/Jobs/Maintenance/CleanDownloads.php index d2fc1117f..0ebfd85a0 100644 --- a/app/Jobs/Maintenance/CleanDownloads.php +++ b/app/Jobs/Maintenance/CleanDownloads.php @@ -49,5 +49,8 @@ class CleanDownloads extends Base echo "Deleted $type $pathname\n"; } } + + file_get_contents('https://workshop.fluidbook.com/maintenance/cleanPackages'); + file_get_contents('https://workshop.fluidbook.com/maintenance/cleanDownload'); } } diff --git a/app/SubForms/Link/Phone.php b/app/SubForms/Link/Phone.php index 11b1add8a..d69faa323 100644 --- a/app/SubForms/Link/Phone.php +++ b/app/SubForms/Link/Phone.php @@ -10,6 +10,6 @@ class Phone extends Web public function addDestinationField() { - $this->addField('to', \Cubist\Backpack\Magic\Fields\Phone::class, __('Numéro de téléphone')); + $this->addField('to', \Cubist\Backpack\Magic\Fields\Text::class, __('Numéro de téléphone')); } } diff --git a/resources/linkeditor/js/linkeditor.utils.js b/resources/linkeditor/js/linkeditor.utils.js index 0b4460483..d66a21fdb 100644 --- a/resources/linkeditor/js/linkeditor.utils.js +++ b/resources/linkeditor/js/linkeditor.utils.js @@ -143,7 +143,7 @@ LinkeditorUtils.prototype = { r2.bottom < r1.top); }, isfocusOnFormItem: function () { - return $(document.activeElement).is('input[type="text"],input[type="email"],input[type="number"],input[type="phone"],textarea,select'); + return $(document.activeElement).is('input[type="text"],input[type="email"],input[type="number"],input[type="tel"],textarea,select'); } }; diff --git a/resources/linkeditor/style/inc/_form.sass b/resources/linkeditor/style/inc/_form.sass index e8e6f8be2..050369b3a 100644 --- a/resources/linkeditor/style/inc/_form.sass +++ b/resources/linkeditor/style/inc/_form.sass @@ -10,7 +10,7 @@ body --field-color: #ccc --field-border: #777 -textarea, input[type="text"], input[type="number"], input[type="email"], input[type="url"] +textarea, input[type="text"], input[type="number"], input[type="email"], input[type="url"], input[type="tel"] font-family: $font font-weight: 400 color: var(--field-color) @@ -182,7 +182,7 @@ button pointer-events: none padding: 8px - textarea, input[type="text"], input[type="number"], input[type="email"], input[type="url"] + textarea, input[type="text"], input[type="number"], input[type="email"], input[type="url"], input[type="tel"] height: 34px padding: 8px width: 100% -- 2.39.5