Skip to content
Snippets Groups Projects
Commit 869b4b43 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

Fix renaming System to Device

Release v0.1.8
parent 75c69608
No related branches found
No related tags found
No related merge requests found
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
"version": "12.41.296.5" "version": "12.41.296.5"
} }
] ]
} }
\ No newline at end of file
{ {
"name": "cesium", "name": "cesium",
"version": "0.1.9", "version": "0.1.10",
"description": "A webapp client for Duniter network", "description": "A webapp client for Duniter network",
"dependencies": { "dependencies": {
"gulp": "^3.9.1", "gulp": "^3.9.1",
......
...@@ -159,20 +159,20 @@ angular.module('cesium', ['ionic', 'ngCordova', 'ionic-material', 'ngMessages', ...@@ -159,20 +159,20 @@ angular.module('cesium', ['ionic', 'ngCordova', 'ionic-material', 'ngMessages',
}) })
// Add a copy-on-click directive // Add a copy-on-click directive
.directive('copyOnClick', ['$window', 'System', function ($window, System) { .directive('copyOnClick', ['$window', 'Device', function ($window, Device) {
return { return {
restrict: 'A', restrict: 'A',
link: function (scope, element, attrs) { link: function (scope, element, attrs) {
element.bind('click', function () { element.bind('click', function () {
if (!System.clipboard.enable) { if (!Device.clipboard.enable) {
if ($window.getSelection && !$window.getSelection().toString() && this.value) { if ($window.getSelection && !$window.getSelection().toString() && this.value) {
this.setSelectionRange(0, this.value.length); this.setSelectionRange(0, this.value.length);
} }
} }
}); });
element.bind('hold', function () { element.bind('hold', function () {
if (System.clipboard.enable && this.value) { if (Device.clipboard.enable && this.value) {
System.clipboard.copy(this.value); Device.clipboard.copy(this.value);
} }
}); });
} }
...@@ -180,7 +180,7 @@ angular.module('cesium', ['ionic', 'ngCordova', 'ionic-material', 'ngMessages', ...@@ -180,7 +180,7 @@ angular.module('cesium', ['ionic', 'ngCordova', 'ionic-material', 'ngMessages',
}]) }])
// Add a select-on-click directive // Add a select-on-click directive
.directive('selectOnClick', ['$window', 'System', function ($window, System) { .directive('selectOnClick', ['$window', function ($window) {
return { return {
restrict: 'A', restrict: 'A',
link: function (scope, element, attrs) { link: function (scope, element, attrs) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment