Skip to content

Commit

Permalink
fix cannot copy exported settings in some browser
Browse files Browse the repository at this point in the history
  • Loading branch information
mayswind committed Apr 6, 2019
1 parent a7d8c84 commit 5f6998a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 2 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"angular-promise-buttons": "^0.1.23",
"angular-sweetalert": "^1.1.2",
"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",
"angularjs-dragula": "^2.0.0"
},
Expand Down
4 changes: 3 additions & 1 deletion src/scripts/controllers/settings-ariang.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,9 @@
});

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

Expand Down

0 comments on commit 5f6998a

Please sign in to comment.