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

Loading animation only work on default #41

Closed
25ml opened this issue Sep 7, 2014 · 2 comments
Closed

Loading animation only work on default #41

25ml opened this issue Sep 7, 2014 · 2 comments

Comments

@25ml
Copy link

25ml commented Sep 7, 2014

Hi everyone,

Just hit a roadblock, can't move on.

So the loading animation that appears when an image is being uploaded only appears in the default div, I mean by default these are the configurations:

html:

script:

var croppicContainerModalOptions = {
uploadUrl:'img_save_to_file.php',
cropUrl:'img_crop_to_file.php',
modal:true,
imgEyecandyOpacity:0.4,
loaderHtml:'

'
}

var cropContainerModal = new Croppic('cropContainerModal', croppicContainerModalOptions);

But even if I create another like this:

html

script

var croppicContainerModalOptions = {
uploadUrl:'img_save_to_file.php',
cropUrl:'img_crop_to_file.php',
modal:true,
imgEyecandyOpacity:0.4,
loaderHtml:'

'
}

var cropContainerModal = new Croppic('cropContainerModal', croppicContainerModalOptions);

var croppicContainerModalOptions2 = {
uploadUrl:'img_save_to_file.php',
cropUrl:'img_crop_to_file.php',
modal:true,
imgEyecandyOpacity:0.4,
loaderHtml:'

'
}

var cropContainerModal2 = new Croppic('cropContainerModal2', croppicContainerModalOptions2);

The second div won't appear that loading animation, only the default cropContainerModal works the animation, why??? :( :(

@25ml
Copy link
Author

25ml commented Sep 7, 2014

Oops seems I can't write divs in the github so i will write with spaces and "|" so u can read:

html:

<| div id="cropContainerModal">< / div |>
<| div id="cropContainerModal2">< / div |>

@25ml 25ml closed this as completed Sep 7, 2014
@25ml
Copy link
Author

25ml commented Sep 7, 2014

Just got it solved, ignore this post.

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

1 participant