mirror of
https://github.com/processwire/processwire.git
synced 2025-08-24 15:23:11 +02:00
A couple of minor adjustments in AdminThemeUikit
This commit is contained in:
@@ -267,7 +267,8 @@ class AdminThemeUikitConfigHelper extends Wire {
|
||||
);
|
||||
foreach($sizes as $value => $info) {
|
||||
$f->addOption($value, $info[0]);
|
||||
$label = reset(explode(' ', $info[0]));
|
||||
$label = explode(' ', $info[0]);
|
||||
$label = reset($label);
|
||||
$e1->value .= "<div class='uk-margin-small'><input disabled class='uk-input $info[1]' value='$label' /></div>";
|
||||
$e2->value .= "<div class='uk-margin-small'><select disabled class='uk-select $info[1]'><option>$label</option></select></div>";
|
||||
}
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* ProcessWire Admin Theme jQuery/Javascript
|
||||
*
|
||||
* Copyright 2017 by Ryan Cramer
|
||||
* Copyright 2018 by Ryan Cramer
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -525,14 +525,15 @@ var ProcessWireAdminTheme = {
|
||||
$(this).addClass('uk-pagination');
|
||||
});
|
||||
|
||||
/*
|
||||
// apply to inputs that don't have Uikit classes (possibly uncomment later)
|
||||
// apply to inputs that don’t already have Uikit classes
|
||||
if(typeof $target == "undefined") $target = $('.InputfieldForm');
|
||||
$('select:not([multiple]):not(.uk-select)', $target).addClass('uk-select');
|
||||
$('input:not(.uk-input):not(:checkbox):not(:radio):not(:button):not(:submit):not(:hidden)', $target).addClass('uk-input');
|
||||
$('textarea:not(.uk-textarea)', $target).addClass('uk-textarea');
|
||||
$('input:checkbox:not(.uk-checkbox)', $target).addClass('uk-checkbox');
|
||||
$('input:radio:not(.uk-radio)', $target).addClass('uk-radio');
|
||||
var $selects = $('select:not([multiple]):not(.uk-select)', $target);
|
||||
$selects.addClass('uk-select');
|
||||
/* add support for the following as needed:
|
||||
var $inputs = $('input:not(.uk-input):not(:checkbox):not(:radio):not(:button):not(:submit):not(:hidden)', $target);
|
||||
var $textareas = $('textarea:not(.uk-textarea)', $target);
|
||||
var $checkboxes = $('input:checkbox:not(.uk-checkbox)', $target);
|
||||
var $radios = $('input:radio:not(.uk-radio)', $target);
|
||||
*/
|
||||
}
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user