diff --git a/js/components/addressBook/addressBook_controller.js b/js/components/addressBook/addressBook_controller.js index 636f09e92d..05bbc2f261 100644 --- a/js/components/addressBook/addressBook_controller.js +++ b/js/components/addressBook/addressBook_controller.js @@ -4,8 +4,22 @@ angular.module('contactsApp') ctrl.showUrl = false; /* globals oc_config */ + + function compareVersion(version1, version2) { + var result=false; + for(var i=0;i<(Math.max(version1.length, version2.length));i++) { + if(Number(version1[i])= [9, 0, 2, 0]; + ctrl.canExport = compareVersion([9, 0, 2, 0], oc_config.version.split('.')); /* eslint-enable camelcase */ ctrl.toggleShowUrl = function() {