Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. <button type="submit" id="submit_button" class="btn btn-default">Odeslat</button>
  2.  
  3. $('#file_upload').uploadify({
  4. 'swf' : 'css/uploadify.swf',
  5. 'uploader' : 'uploadify.php?galerie=<?php echo $n; ?>',
  6. 'onUploadProgress' : function(file) {
  7. $('#submit_button').prop('disabled', true);
  8. }
  9. });
  10.  
  11. $('#file_upload').uploadify({
  12.  
  13. 'swf': 'css/uploadify.swf',
  14. 'uploader' : 'uploadify.php?galerie=<?php echo $n; ?>',
  15. 'onUploadProgress' : function(file) {
  16. $('#submit_button').attr('disabled', 'disabled');
  17. },
  18. 'onUploadComplete': function(file) {
  19. $('#submit_button').removeAttr("disabled");
  20. }
  21. });
  22.  
  23. $('#file_upload').uploadify({
  24. 'swf' : 'css/uploadify.swf',
  25. 'uploader' : 'uploadify.php?galerie=<?php echo $n; ?>',
  26. 'onUploadProgress' : function(file) {
  27. $('#submit_button').attr('disabled', 'disabled');
  28. },
  29. 'onComplete': function(event, queueID, fileObj, response, data) {
  30. $('#submit_button').removeAttr("disabled")
  31. }
  32. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement