Browse Source

Merge branch 'master' of github.com:thingsboard/thingsboard

pull/1941/head
Igor Kulikov 7 years ago
parent
commit
2f8e89bda8
  1. 8
      application/src/main/data/json/system/widget_bundles/cards.json
  2. 2
      ui/src/app/components/widget/widget.controller.js

8
application/src/main/data/json/system/widget_bundles/cards.json

File diff suppressed because one or more lines are too long

2
ui/src/app/components/widget/widget.controller.js

@ -439,13 +439,13 @@ export default function WidgetController($scope, $state, $timeout, $window, $ocL
}
function elementClick(event) {
event.stopPropagation();
var e = event.target || event.srcElement;
if (e.id) {
var descriptors = getActionDescriptors('elementClick');
if (descriptors.length) {
for (var i = 0; i < descriptors.length; i++) {
if (descriptors[i].name == e.id) {
event.stopPropagation();
var entityInfo = getActiveEntityInfo();
var entityId = entityInfo ? entityInfo.entityId : null;
var entityName = entityInfo ? entityInfo.entityName : null;

Loading…
Cancel
Save