Project

General

Profile

« Previous | Next » 

Revision 4904

Added by walbridge over 15 years ago

fix bug #3950, make additional uploads stick when modifying a document

View differences:

lib/style/common/templates/entryForm.js
995 995
    this.list_target = list_target;
996 996
    this.count = 0;
997 997
    this.id = 0;
998
    var ucount =  document.getElementById("upCount");
998 999
    var fcount =  document.getElementById("fileCount");
999 1000
    if (fcount.value > 0) {
1000 1001
        this.id = fcount.value;
1002
    } else {
1003
        // upCount contains pre-existing uploads, check this for editing existing packages
1004
        if (ucount.value > 0) {
1005
            this.id = ucount.value;
1006
            alert(this.id);
1007
        }
1001 1008
    }
1002 1009

  
1003 1010
    if (max) {
lib/style/common/templates/entryForm.tmpl
1092 1092
                [% END %]
1093 1093
                [% cnt = cnt + 1 %]
1094 1094
            [% END %]
1095
        <input type="hidden" name="upCount" value="[%upCount%]">
1095
        <input type="hidden" id="upCount" name="upCount" value="[%upCount%]">
1096 1096
        [% END %]
1097 1097

  
1098
        <input type="hidden" name="fileCount" value="[%fileCount%]" id="fileCount"></td>
1098
        <input type="hidden" id="fileCount" name="fileCount" value="[%fileCount%]"></td>
1099 1099
  </tr>
1100 1100
  <tr class="sectbody">
1101 1101
    <td class="rightCol" valign="top"><span class="label">Attached Files:</span></td>

Also available in: Unified diff