diff --git a/ionic.project b/ionic.project index b392585b59b03a4e0e0bdf711ae35813ba9b64d9..60c28f09c62e40b096b55ecb5d342cae63fdff93 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 3223c3744fc6c7dcd3de00d8ba87644ee321f4b2..679db57b49cd95463235272c4d24ccfc050abfe5 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 72f718fbdbc5e03571bfd6636cfebf8de8de9bb5..a8b53c95bb088c73bc01f989965da63118d1d91a 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) {