Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamminf committed Jun 27, 2016
2 parents d1ce058 + 60745dc commit f72c007
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 14 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## Changelog

#### v1.3.1
- `Fixed` Fixed incompatibility with PHP 5.5 and below introduced in `1.3.0`
- `Fixed` Fixed bug where leaving editing an element would always show the confirm dialog, regardless if anything changed
- `Fixed` Minor UI fix with field-less tabs on child blocks having incorrect background color

#### v1.3.0
- `Added` Added ability to duplicate blocks
- `Added` Added ability to have blank tabs in block type field layouts
Expand Down
2 changes: 1 addition & 1 deletion neo/NeoPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function getDescription()

public function getVersion()
{
return '1.3.0';
return '1.3.1';
}

public function getCraftMinimumVersion()
Expand Down
3 changes: 2 additions & 1 deletion neo/fieldtypes/NeoFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,8 @@ private function _prepareInputHtml($id, $name, $settings, $value, $static = fals
*/
private function _getBlockHtml(Neo_BlockTypeModel $blockType, Neo_BlockModel $block = null, $namespace = '', $static = false)
{
$hasErrors = $block ? !empty($block->getAllErrors()) : false;
$errors = $block ? $block->getAllErrors() : [];
$hasErrors = !empty($errors);
$fullNamespace = craft()->templates->namespaceInputName($namespace, craft()->templates->getNamespace());

$cacheKey = implode(':', ['neoblock',
Expand Down
18 changes: 9 additions & 9 deletions neo/resources/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion neo/resources/main.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion neo/twigextensions/NeoTwigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function getName()
public function getTests()
{
return [
'neoblock' => new \Twig_Test_Method($this, 'isNeoBlock'),
new \Twig_SimpleTest('neoblock', [$this, 'isNeoBlock']),
];
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "craft-neo",
"version": "1.3.0",
"version": "1.3.1",
"description": "A Matrix-like field type that uses existing fields",
"main": "webpack.config.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/input/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export default Garnish.Base.extend({
bInfo.id = Block.getNewId()
}

bInfo.modified = false
bInfo.namespace = [...this._templateNs, bInfo.id]
bInfo.blockType = new BlockType({
id: blockType.getId(),
Expand Down
4 changes: 4 additions & 0 deletions src/input/styles/input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@
> .ni_block_body > .ni_block_children {
background-color: white;
}

> .ni_block_topbar > .ni_block_topbar_item.tabs .tab.is-selected.is-blank {
border-bottom-color: white;
}
}

&.is-contracted {
Expand Down

0 comments on commit f72c007

Please sign in to comment.