This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Contains Drupal\viewerjs\Plugin\Field\FieldFormatter\ViewerJsFormatter. | |
* | |
* Download the ViewerJS library | |
* at https://github.com/abuhamza/Viewer.js/archive/master.zip | |
* and extract it to libraries/viewerjs | |
* (so that the viewer.js will be located at |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/web/themes/custom/lsac/components/_patterns/01-atoms/form-elements/form-element/form-element.twig b/web/themes/custom/lsac/components/_patterns/01-atoms/form-elements/form-element/form-element.twig | |
index 9e6cc85d6..18523d252 100644 | |
--- a/web/themes/custom/lsac/components/_patterns/01-atoms/form-elements/form-element/form-element.twig | |
+++ b/web/themes/custom/lsac/components/_patterns/01-atoms/form-elements/form-element/form-element.twig | |
@@ -79,6 +79,7 @@ | |
{{ description.content }} | |
</div> | |
{% endif %} | |
+ {{ kint(children) }} | |
{{ children }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/FieldCollectionItemAccessControlHandler.php b/src/FieldCollectionItemAccessControlHandler.php | |
index 4c79e3d..41339d8 100644 | |
--- a/src/FieldCollectionItemAccessControlHandler.php | |
+++ b/src/FieldCollectionItemAccessControlHandler.php | |
@@ -23,9 +23,13 @@ protected function checkAccess(EntityInterface $entity, $operation, AccountInter | |
} | |
// Here we will be if host entity was not set and entity is not new. | |
elseif (!$entity->isNew()) { | |
+ // Applications that were migrated throw errors on first save though | |
+ // the ui. This is a temporary work around for that. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/js/google_analytics.js b/js/google_analytics.js | |
index 0490c2b..dea81ae 100644 | |
--- a/js/google_analytics.js | |
+++ b/js/google_analytics.js | |
@@ -15,7 +15,7 @@ | |
// Attach mousedown, keyup, touchstart events to document only and catch | |
// clicks on all elements. | |
- $(document.body).on('mousedown keyup touchstart', function (event) { | |
+ $(document.body).on('mousedown keyup', function (event) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {Component} from 'react'; | |
import ReactDOM from 'react-dom'; | |
import 'whatwg-fetch'; // https://www.npmjs.com/package/whatwg-fetch | |
class Favorite extends Component { | |
constructor() { | |
super(); | |
this.toggleFavorite = this.toggleFavorite.bind(this); | |
this.saveFavorite = this.saveFavorite.bind(this); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
favorite: | |
js: | |
js/favorite.bundle.js: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements template_preprocess_node(). | |
*/ | |
function favorite_preprocess_node(&$variables) { | |
$node = $variables['node']; | |
if ($variables['view_mode'] == 'full') { | |
$variables['#attached']['library'][] = 'favorite/favorite'; | |
$variables['content']['favorite'] = array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/docroot/core/config/schema/core.data_types.schema.yml b/docroot/core/config/schema/core.data_types.schema.yml | |
index 73db361..c6e4f8c 100644 | |
--- a/docroot/core/config/schema/core.data_types.schema.yml | |
+++ b/docroot/core/config/schema/core.data_types.schema.yml | |
@@ -392,6 +392,9 @@ field_config_base: | |
required: | |
type: boolean | |
label: 'Required field' | |
+ orderable: | |
+ type: boolean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// HTML5 date elements use the user's browser date format, | |
// but browsers that don't support it have a more confusing interface | |
// requiring help text. | |
Drupal.behaviors.DateHelp = { | |
attach: function (context, settings) { | |
if (Modernizr.inputtypes.date === false) { | |
// If there is no help text div, first add one. | |
$('div.field--widget-datetime-default:not(:has(.description))').each(function() { | |
$(this).find('input').after('<div class="description"></div>'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Inline_form_errors module gives links to elements with errors. | |
// When using field_group module (this is for vertical tabs) you need to first open the right vertical tab | |
// and then scroll to the element with the error. | |
$('.messages__list a', context).on('click', function(e) { | |
var url = $(this).attr('href'); | |
var hash = url.substring(url.indexOf('#')); | |
var index = $(hash).parents('.vertical-tabs__pane').index() - 1; | |
if (index >= 0) { | |
$('ul.vertical-tabs__menu li').eq(index).find('a').click(); | |
} |
NewerOlder