--- a/enmi12/glossaire/js/main.js Wed Nov 06 03:21:17 2013 +0000
+++ b/enmi12/glossaire/js/main.js Thu Nov 07 00:08:07 2013 +0000
@@ -21,11 +21,15 @@
});
}
- $(".copyButton").zclip({
- path: "ZeroClipboard.swf",
- copy: function(){return $(this).prev().val();},
- afterCopy: function(){$(this).text('CopiƩ !');},
-
+ $(".copyButton").click(function(evt) {
+ var elt = $(evt.target);
+ if(elt.siblings(".zclip").length === 0) {
+ elt.zclip({
+ path: "ZeroClipboard.swf",
+ copy: function(){return elt.prev().val();},
+ afterCopy: function(){elt.text('CopiƩ !');},
+ });
+ }
});
});
@@ -101,4 +105,4 @@
$('#container').isotope(
'reLayout');
}
-});
\ No newline at end of file
+});