Commit 1571072c by Mitsuhiro Tanda

use clipboard.js

parent 5ccbe6d4
......@@ -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]);
});
};
});
......
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