Browse Source

UI: IE11 layout fixes.

pull/477/head
Igor Kulikov 9 years ago
parent
commit
25bdf8adde
  1. 2
      ui/src/app/asset/asset-card.tpl.html
  2. 4
      ui/src/app/asset/assign-to-customer.controller.js
  3. 4
      ui/src/app/device/assign-to-customer.controller.js
  4. 2
      ui/src/app/device/device-card.tpl.html
  5. 2
      ui/src/index.html

2
ui/src/app/asset/asset-card.tpl.html

@ -16,7 +16,7 @@
-->
<div flex layout="column" style="margin-top: -10px;">
<div flex style="text-transform: uppercase; padding-bottom: 10px;">{{vm.item.type}}</div>
<div style="text-transform: uppercase; padding-bottom: 10px;">{{vm.item.type}}</div>
<div class="tb-small" ng-show="vm.isAssignedToCustomer()">{{'asset.assignedToCustomer' | translate}} '{{vm.item.assignedCustomer.title}}'</div>
<div class="tb-small" ng-show="vm.isPublic()">{{'asset.public' | translate}}</div>
</div>

4
ui/src/app/asset/assign-to-customer.controller.js

@ -77,8 +77,8 @@ export default function AssignAssetToCustomerController(customerService, assetSe
function assign() {
var tasks = [];
for (var assetId in assetIds) {
tasks.push(assetService.assignAssetToCustomer(vm.customers.selection.id.id, assetIds[assetId]));
for (var i=0;i<assetIds.length;i++) {
tasks.push(assetService.assignAssetToCustomer(vm.customers.selection.id.id, assetIds[i]));
}
$q.all(tasks).then(function () {
$mdDialog.hide();

4
ui/src/app/device/assign-to-customer.controller.js

@ -77,8 +77,8 @@ export default function AssignDeviceToCustomerController(customerService, device
function assign() {
var tasks = [];
for (var deviceId in deviceIds) {
tasks.push(deviceService.assignDeviceToCustomer(vm.customers.selection.id.id, deviceIds[deviceId]));
for (var i=0;i<deviceIds.length;i++) {
tasks.push(deviceService.assignDeviceToCustomer(vm.customers.selection.id.id, deviceIds[i]));
}
$q.all(tasks).then(function () {
$mdDialog.hide();

2
ui/src/app/device/device-card.tpl.html

@ -16,7 +16,7 @@
-->
<div flex layout="column" style="margin-top: -10px;">
<div flex style="text-transform: uppercase; padding-bottom: 10px;">{{vm.item.type}}</div>
<div style="text-transform: uppercase; padding-bottom: 10px;">{{vm.item.type}}</div>
<div class="tb-small" ng-show="vm.isAssignedToCustomer()">{{'device.assignedToCustomer' | translate}} '{{vm.item.assignedCustomer.title}}'</div>
<div class="tb-small" ng-show="vm.isPublic()">{{'device.public' | translate}}</div>
</div>

2
ui/src/index.html

@ -16,7 +16,7 @@
-->
<!DOCTYPE html>
<html ng-app="thingsboard" ng-strict-di>
<html ng-app="thingsboard" ng-strict-di style="width: 100%;">
<head>
<title ng-bind="pageTitle"></title>
<base href="/" />

Loading…
Cancel
Save