diff --git a/FieldtypeGrapick.module.php b/FieldtypeGrapick.module.php index d1bcd67..a36edf8 100644 --- a/FieldtypeGrapick.module.php +++ b/FieldtypeGrapick.module.php @@ -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.', @@ -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) { @@ -62,6 +63,7 @@ public function setJsConfig($e) { } } } + break; } } wire()->config->jsConfig('grapicks', $js_array); diff --git a/InputfieldGrapick.module.php b/InputfieldGrapick.module.php index 0c193d3..6fadb52 100644 --- a/InputfieldGrapick.module.php +++ b/InputfieldGrapick.module.php @@ -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', diff --git a/README.md b/README.md index e4ef951..c647d44 100644 --- a/README.md +++ b/README.md @@ -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.