fix cannot copy exported settings in some browser

This commit is contained in:
MaysWind 2019-04-06 22:23:09 +08:00
parent a7d8c8487f
commit 5f6998a348
3 changed files with 6 additions and 5 deletions

5
package-lock.json generated
View file

@ -217,9 +217,8 @@
"integrity": "sha1-tPGzM+x87THCB9tePXdmU3XRjqA=" "integrity": "sha1-tPGzM+x87THCB9tePXdmU3XRjqA="
}, },
"angular-clipboard": { "angular-clipboard": {
"version": "1.6.2", "version": "git://github.com/mayswind/angular-clipboard.git#597a03b73a13754926bd2406979e5de65eb98102",
"resolved": "https://registry.npmjs.org/angular-clipboard/-/angular-clipboard-1.6.2.tgz", "from": "git://github.com/mayswind/angular-clipboard.git#597a03b73a13754926bd2406979e5de65eb98102"
"integrity": "sha512-T5kK6X6fFigLPd2szxW8ETEOLNW9z/9RqdlXtLAY7nakrI62BH8FGOxIes36tvAP/9numwokEWKVLy0WpNkB7w=="
}, },
"angular-cookies": { "angular-cookies": {
"version": "1.6.10", "version": "1.6.10",

View file

@ -33,7 +33,7 @@
"angular-promise-buttons": "^0.1.23", "angular-promise-buttons": "^0.1.23",
"angular-sweetalert": "^1.1.2", "angular-sweetalert": "^1.1.2",
"angular-utf8-base64": "^0.0.5", "angular-utf8-base64": "^0.0.5",
"angular-clipboard": "^1.6.2", "angular-clipboard": "git://github.com/mayswind/angular-clipboard.git#597a03b73a13754926bd2406979e5de65eb98102",
"angular-input-dropdown": "git://github.com/mayswind/angular-input-dropdown.git#68670e39816698b3eb98c0e740a0efe77d5fbdd1", "angular-input-dropdown": "git://github.com/mayswind/angular-input-dropdown.git#68670e39816698b3eb98c0e740a0efe77d5fbdd1",
"angularjs-dragula": "^2.0.0" "angularjs-dragula": "^2.0.0"
}, },

View file

@ -256,7 +256,9 @@
}); });
$scope.copyExportSettings = function () { $scope.copyExportSettings = function () {
clipboard.copyText($scope.context.exportSettings); clipboard.copyText($scope.context.exportSettings, {
container: angular.element('#export-settings-modal')[0]
});
$scope.context.exportSettingsCopied = true; $scope.context.exportSettingsCopied = true;
}; };