mirror of
https://github.com/processwire/processwire.git
synced 2025-08-20 21:42:23 +02:00
Update InputfieldAsmSelect to use font-awesome based edit icon rather than a jQuery UI one
This commit is contained in:
@@ -45,3 +45,7 @@
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
|
||||
.asmListItemEdit a > .asmIcon {
|
||||
margin-left: 3px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
@@ -37,7 +37,8 @@ class InputfieldAsmSelect extends InputfieldSelectMultiple implements Inputfield
|
||||
|
||||
// an optional edit or detail link where items can be modified or viewed
|
||||
// i.e. /path/to/page/?id={value} where {value} is replaced with option value
|
||||
$this->setAsmSelectOption('editLink', '');
|
||||
$this->setAsmSelectOption('editLink', '');
|
||||
$this->setAsmSelectOption('editLabel', "<i class='fa fa-fw fa-edit asmIcon'></i>");
|
||||
|
||||
// only applicable if editLink is set. set to false if you don't want edit link to be modal
|
||||
$this->setAsmSelectOption('editLinkModal', true);
|
||||
|
@@ -91,11 +91,16 @@
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.asmListItemEdit .ui-icon {
|
||||
.asmListItemEdit .ui-icon,
|
||||
.asmListItemEdit .asmIcon {
|
||||
/* hide the icon */
|
||||
float: none;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.asmListItemEdit a:hover .asmIcon {
|
||||
display: inline-block;
|
||||
}
|
||||
.asmListItemEdit a:hover .ui-icon {
|
||||
/* display the icon when hovered on the edit label */
|
||||
display: inline;
|
||||
|
Reference in New Issue
Block a user