Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

afterCopy event never fired, beforeCopy event sometimes fired #1

Open
zoharsacks opened this issue Jan 17, 2013 · 1 comment
Open

Comments

@zoharsacks
Copy link

Hi,
I was trying to use the gem in my project and sadly encounter the following problems.

  1. The beforeCopy event sometimes fired (i get the alert)
  2. The afterCopy event never fired

Tried it both in FF 18.0 and Chrome Version 24.0.1312.52 m

my gem file:
gem 'rails', '3.2.11'
gem 'sqlite3'
gem 'jquery-rails'
gem 'json'
gem 'zclip-rails'

group :assets do
gem 'sass-rails', '> 3.2.3'
gem 'coffee-rails', '
> 3.2.1'
gem 'uglifier', '>= 1.0.3'
end

group :development, :test do
gem 'rspec-rails', ">= 2.0.0.beta"
end

and the code snippet is:
example
$(document).ready(function(){
$("#copy-some-txt").zclip({
copy: SafeGetUrl(),
beforeCopy: function(){
alert("I am going to copy some text to your clipboard");
},
afterCopy: function(){
alert("done");
}
});
});

please help
Z

@kinduff
Copy link

kinduff commented Jan 25, 2013

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants