Commit 48050de0 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Bug 1513665: added clipboard lib for 'copy to clipboard' button"

parents 60771d00 e65ca495
Clipboard in Mahara
===================
Website: https://clipboardjs.com/
https://zenorocha.github.io/clipboard.js
Version: 1.7.1
Changes:
* None
This diff is collapsed.
ZeroClipboard in Mahara
========================
Website: http://zeroclipboard.org/
https://github.com/zeroclipboard/zeroclipboard
Version: 2.2.0
Changes:
* None
This diff is collapsed.
......@@ -605,7 +605,7 @@ jQuery(function($) {
for (i = 0; i < {$count}; i++) {
var element = document.getElementById("copytoclipboard-" + i);
try {
var client = new ZeroClipboard(element);
var client = new Clipboard(element);
client.on("error", function(e) {
var element = document.getElementById("copytoclipboard-" + e.client.id);
$(element).hide();
......@@ -747,7 +747,7 @@ jQuery(function($) {
EOF;
$smarty = smarty(
array('js/zeroclipboard/ZeroClipboard.min.js'),
array('js/clipboard/clipboard.min.js'),
array(),
array(
'mahara' => array('From', 'To'),
......
......@@ -156,7 +156,7 @@ jQuery(function($) {
for (i = 0; i < {$count}; i++) {
var element = document.getElementById("copytoclipboard-" + i);
try {
var client = new ZeroClipboard(element);
var client = new Clipboard(element);
client.on("error", function(e) {
var element = document.getElementById("copytoclipboard-" + e.client.id);
$(element).hide();
......@@ -290,7 +290,7 @@ jQuery(function($) {
EOF;
$smarty = smarty(
array('js/zeroclipboard/ZeroClipboard.min.js'),
array('js/clipboard/clipboard.min.js'),
array(),
array(),
array('sidebars' => true)
......
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