Merge branch 'master' of github.com:thingsboard/thingsboard
This commit is contained in:
commit
2f8e89bda8
File diff suppressed because one or more lines are too long
@ -439,13 +439,13 @@ export default function WidgetController($scope, $state, $timeout, $window, $ocL
|
|||||||
}
|
}
|
||||||
|
|
||||||
function elementClick(event) {
|
function elementClick(event) {
|
||||||
event.stopPropagation();
|
|
||||||
var e = event.target || event.srcElement;
|
var e = event.target || event.srcElement;
|
||||||
if (e.id) {
|
if (e.id) {
|
||||||
var descriptors = getActionDescriptors('elementClick');
|
var descriptors = getActionDescriptors('elementClick');
|
||||||
if (descriptors.length) {
|
if (descriptors.length) {
|
||||||
for (var i = 0; i < descriptors.length; i++) {
|
for (var i = 0; i < descriptors.length; i++) {
|
||||||
if (descriptors[i].name == e.id) {
|
if (descriptors[i].name == e.id) {
|
||||||
|
event.stopPropagation();
|
||||||
var entityInfo = getActiveEntityInfo();
|
var entityInfo = getActiveEntityInfo();
|
||||||
var entityId = entityInfo ? entityInfo.entityId : null;
|
var entityId = entityInfo ? entityInfo.entityId : null;
|
||||||
var entityName = entityInfo ? entityInfo.entityName : null;
|
var entityName = entityInfo ? entityInfo.entityName : null;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user