mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 19:30:36 -06:00
use clipboard.js
This commit is contained in:
parent
5ccbe6d40b
commit
1571072c18
@ -88,11 +88,8 @@ function (angular, _, require, config) {
|
||||
|
||||
module.directive('clipboardButton',function() {
|
||||
return function(scope, elem) {
|
||||
require(['vendor/zero_clipboard'], function(ZeroClipboard) {
|
||||
ZeroClipboard.config({
|
||||
swfPath: config.appSubUrl + '/public/vendor/zero_clipboard.swf'
|
||||
});
|
||||
new ZeroClipboard(elem[0]);
|
||||
require(['vendor/clipboard/dist/clipboard'], function(Clipboard) {
|
||||
new Clipboard(elem[0]);
|
||||
});
|
||||
};
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user