Skip to content

Commit

Permalink
Fixed jsConfig errors
Browse files Browse the repository at this point in the history
  • Loading branch information
solonmedia committed Jan 21, 2024
1 parent 643da8b commit 79cf1d4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion FieldtypeGrapick.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class FieldtypeGrapick extends Fieldtype implements Module {
public static function getModuleInfo() {
return array(
'title' => 'Grapick',
'version' => '1.0.1',
'version' => '1.0.2',
'author' => 'Jacob Gorny',
'href' => 'https://github.com/solonmedia/FieldtypeGrapick',
'summary' => 'Field that incorporates the Grapick javascript gradient designer and stores an array of 32-bit rgba colors, gradient positions and optionally gradient styles and a plaintext style rule for CSS.',
Expand Down Expand Up @@ -51,6 +51,7 @@ public function setJsConfig($e) {
case 'InputfieldGrapick' :
$ctrl = $fc->name;
$js_array[$ctrl]['loaded'] = false;
break;
case 'InputfieldRepeater' :
case 'InputfieldRepeaterMatrix' :
foreach($fc->value as $enum => $it) {
Expand All @@ -62,6 +63,7 @@ public function setJsConfig($e) {
}
}
}
break;
}
}
wire()->config->jsConfig('grapicks', $js_array);
Expand Down
2 changes: 1 addition & 1 deletion InputfieldGrapick.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static function getModuleInfo() {
return array(
'title' => "Grapick",
'summary' => 'Field that implements Grapick javascript gradient designer.',
'version' => '1.0.1',
'version' => '1.0.2',
'author' => 'Jacob Gorny',
'href' => 'https://github.com/solonmedia/FieldtypeGrapick',
'icon' => 'paint-brush',
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ This module makes use of the Spectrum colorpicker library.

Repeater and RepeaterMatrix items are supported.

There is a gremlin in RepeaterPageArray iteration that causes warnings. I've created an issue for it. It does not impact performance.

# CssGradient Object

The FieldtypeGrapick field value is a CssGradient object.
Expand Down

0 comments on commit 79cf1d4

Please sign in to comment.