From 869b4b4364a3a2f4f7330517241b08555651da20 Mon Sep 17 00:00:00 2001 From: blavenie <benoit.lavenier@e-is.pro> Date: Thu, 2 Jun 2016 11:33:06 +0200 Subject: [PATCH] Fix renaming System to Device Release v0.1.8 --- ionic.project | 2 +- package.json | 2 +- www/js/app.js | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ionic.project b/ionic.project index b392585b..60c28f09 100644 --- a/ionic.project +++ b/ionic.project @@ -17,4 +17,4 @@ "version": "12.41.296.5" } ] -} +} \ No newline at end of file diff --git a/package.json b/package.json index 3223c374..679db57b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cesium", - "version": "0.1.9", + "version": "0.1.10", "description": "A webapp client for Duniter network", "dependencies": { "gulp": "^3.9.1", diff --git a/www/js/app.js b/www/js/app.js index 72f718fb..a8b53c95 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -159,20 +159,20 @@ angular.module('cesium', ['ionic', 'ngCordova', 'ionic-material', 'ngMessages', }) // Add a copy-on-click directive - .directive('copyOnClick', ['$window', 'System', function ($window, System) { + .directive('copyOnClick', ['$window', 'Device', function ($window, Device) { return { restrict: 'A', link: function (scope, element, attrs) { element.bind('click', function () { - if (!System.clipboard.enable) { + if (!Device.clipboard.enable) { if ($window.getSelection && !$window.getSelection().toString() && this.value) { this.setSelectionRange(0, this.value.length); } } }); element.bind('hold', function () { - if (System.clipboard.enable && this.value) { - System.clipboard.copy(this.value); + if (Device.clipboard.enable && this.value) { + Device.clipboard.copy(this.value); } }); } @@ -180,7 +180,7 @@ angular.module('cesium', ['ionic', 'ngCordova', 'ionic-material', 'ngMessages', }]) // Add a select-on-click directive - .directive('selectOnClick', ['$window', 'System', function ($window, System) { + .directive('selectOnClick', ['$window', function ($window) { return { restrict: 'A', link: function (scope, element, attrs) { -- GitLab