add options to select apps that must be opend on new tab (UI)
This commit is contained in:
parent
385c27c691
commit
918c55da3e
7 changed files with 102 additions and 20 deletions
|
|
@ -65,11 +65,26 @@ class PersonalSettingController extends Controller
|
|||
}
|
||||
}
|
||||
|
||||
if ('target-blank' === $name) {
|
||||
if ('target-blank-mode' === $name) {
|
||||
$doSave = true;
|
||||
|
||||
if (!in_array($value, ['-1', '0', '1'])) {
|
||||
$value = '-1';
|
||||
if (!in_array($value, ['1', '2'])) {
|
||||
$value = '1';
|
||||
}
|
||||
}
|
||||
|
||||
if ('target-blank-apps' === $name) {
|
||||
$doSave = true;
|
||||
$data = json_decode($value, true);
|
||||
|
||||
if (!is_array($data)) {
|
||||
$doSave = false;
|
||||
} else {
|
||||
foreach ($data as $v) {
|
||||
if (!is_string($v)) {
|
||||
$doSave = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue