Guest User

Untitled

a guest
Feb 17th, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. <div class="col-md-6 image-preview-single">
  2. <img src="" alt="" class="img-responsive card-shadow hidden">
  3. <div id="logo-upload" class="add-new-short add-new-home-realtor card-shadow-mini btn-file uploader-homicity" style="display:block;text-decoration:none; cursor: pointer;">
  4. <i class="fa fa-photo"/>
  5. <input type="hidden" role="uploadcare-uploader" name="logo" data-upload-url-base="" data-images-only="true" data-crop="150x150" data-clearable="true" id="logo-input">
  6. <div class="uploadcare-widget uploadcare-widget-option-clearable uploadcare-widget-status-ready" data-status="ready">
  7. <div class="uploadcare-widget-dragndrop-area">
  8. Drop a file here
  9. </div>
  10. <div class="uploadcare-widget-status uploadcare-widget-circle uploadcare-widget-circle--canvas">
  11. <canvas width="56" height="56"/>
  12. </div>
  13. <div class="uploadcare-widget-text">
  14. </div>
  15. <div tabindex="0" role="button" class="uploadcare-widget-button uploadcare-widget-button-open">Choose an image</div>
  16. <div tabindex="0" role="button" class="uploadcare-widget-button uploadcare-widget-button-cancel">Cancel</div>
  17. <div tabindex="0" role="button" class="uploadcare-widget-button uploadcare-widget-button-remove">Remove</div>
  18. </div>
  19. </div>
  20.  
  21. $( '#logo-upload' ).on( 'click', function() {
  22. $('input#logo-input').click();
  23. });
  24.  
  25. Uncaught RangeError: Maximum call stack size exceeded
  26. at RegExp.exec (<anonymous>)
  27. at n.fn.init (jquery.min.js:2)
  28. at n (jquery.min.js:2)
  29. at HTMLDivElement.<anonymous> (uploadcare.js:72)
  30. at HTMLDivElement.dispatch (jquery.min.js:3)
  31. at HTMLDivElement.r.handle (jquery.min.js:3)
  32. at Object.trigger (jquery.min.js:4)
  33. at HTMLInputElement.<anonymous> (jquery.min.js:4)
  34. at Function.each (jquery.min.js:2)
  35. at n.fn.init.each (jquery.min.js:2)
  36.  
  37. $('input#logo-input').on('click', function(e) {
  38. e.preventDefault();
  39. e.stopPropagation();
  40. ...your code
  41. });
  42.  
  43. $('#logo-upload').on('click', function() {
  44. uploadcare.Widget(input_selector).openDialog();
  45. });
Add Comment
Please, Sign In to add comment