Commits

Akash Sinha committed 9059f9d

modification in file upload script, now duplicate files could only be uploaded when either all files in queue are uploaded or all are cancelled.

  • Participants
  • Parent commits db12110

Comments (0)

Files changed (3)

File MoinMoin/static/js/jfu.js

                 setTimeout(function () {
                     if (!uploadHandler.uploadTable.find('.file_upload_progress div:visible:first').length) {
                         uploadHandler.multiButtons.find('.file_upload_start:first, .file_upload_cancel:first').fadeOut();
+                        uploadHandler.fileArray.length = 0;
                     }
                 }, 500);
             });

File MoinMoin/templates/forms.html

         </div>
         <table class="files">
             <tr class="file_upload_template" style="display:none;">
-                <td class="file_upload_start"><button>{{ _("Start") }}</button></td>
                 <td class="file_upload_cancel"><button>{{ _("Cancel") }}</button></td>
                 <td class="file_name"></td>
                 <td class="file_upload_progress"><div></div></td>

File MoinMoin/themes/modernized/static/css/common.css

 form.upload_file:hover { color: #FFFFFF; }
 form.upload_file input { -moz-transform: translate(-800px, 0pt) scale(10); border: 300px solid transparent; cursor: pointer; height: 100%;  margin: 0; opacity: 0; position: absolute; right: 0; top: 0;}
 form.upload_file input { height: auto; }
-form.upload_file button {  display: none;}
+form.upload_file button { display: none;}
 form.upload_file { display: block; }
 .moin-drag { font-size: 0.7em; color: #6C7680; }