Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. if ($('.copyaddress a').length > 0) {
  2. $('.copyaddress a').zclip({
  3. path: "http://toronto.goldenmaids.ca/plugins/ZeroClipboard.swf",
  4. copy: function () {
  5. var i = 0;
  6. var ccopy = $('.copyscont a');
  7. $('.connectedSortable li').each(function () {
  8. $(ccopy[i]).data('id', $(this).data('id'));
  9. i++;
  10. });
  11. return $('#addresset_' + $(this).data('id') + ' .name_addr').text()
  12. },
  13. afterCopy: function () {
  14. $that = $(this);
  15. $that.text('Copied');
  16. $('#addresset_' + $($that).data('id') + ' .name_addr').hide();
  17. $('#addresset_' + $($that).data('id') + ' .name_addr').show('highlight');
  18. setTimeout(function () {
  19. $that.text('Copy');
  20. }, 300);
  21. }
  22. });
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement