Commit ec6dd350 by Torkel Ödegaard

Fixed path to ZeroClipboard flash file

parent f5f4689e
...@@ -2,8 +2,9 @@ define([ ...@@ -2,8 +2,9 @@ define([
'angular', 'angular',
'lodash', 'lodash',
'require', 'require',
'config',
], ],
function (angular, _, require) { function (angular, _, require, config) {
'use strict'; 'use strict';
var module = angular.module('grafana.controllers'); var module = angular.module('grafana.controllers');
...@@ -86,6 +87,9 @@ function (angular, _, require) { ...@@ -86,6 +87,9 @@ function (angular, _, require) {
module.directive('clipboardButton',function() { module.directive('clipboardButton',function() {
return function(scope, elem) { return function(scope, elem) {
require(['ZeroClipboard'], function(ZeroClipboard) { require(['ZeroClipboard'], function(ZeroClipboard) {
ZeroClipboard.config({
swfPath: config.appSubUrl + 'public/vendor/ZeroClipboard.swf'
});
new ZeroClipboard(elem[0]); new ZeroClipboard(elem[0]);
}); });
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment