[open-ils-commits] r10552 - trunk/Open-ILS/web/vandelay
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Sep 5 16:57:30 EDT 2008
Author: erickson
Date: 2008-09-05 16:57:26 -0400 (Fri, 05 Sep 2008)
New Revision: 10552
Modified:
trunk/Open-ILS/web/vandelay/vandelay.html
trunk/Open-ILS/web/vandelay/vandelay.js
Log:
cleaned up some of the status display handling
Modified: trunk/Open-ILS/web/vandelay/vandelay.html
===================================================================
--- trunk/Open-ILS/web/vandelay/vandelay.html 2008-09-05 20:38:58 UTC (rev 10551)
+++ trunk/Open-ILS/web/vandelay/vandelay.html 2008-09-05 20:57:26 UTC (rev 10552)
@@ -65,6 +65,12 @@
<div dojoType="dijit.ProgressBar" jsId='vlControlledProgressBar' style="width:300px"></div>
</div>
+ <div id='vl-marc-upload-status-div' class='hidden'>
+ <h1>Upload Status</h1><br/>
+ <div id='vl-upload-status-uploading'><h3>Uploading...</h3></div>
+ <div id='vl-upload-status-processing' class='hidden'><h3>Processing...</h3></div>
+ </div>
+
<!-- MARC upload form -->
<div id='vl-marc-upload-div' class='hidden'>
<h1>Evergreen MARC File Upload</h1><br/>
@@ -105,20 +111,12 @@
<tr>
<td>
<span id="vl-file-label">File to Upload:</span>
- <span id="vl-file-uploading" class='hidden'>Uploading...</span>
</td>
<td id='vl-input-td' colspan='4'>
<input size='48' type="file" name="marc_upload"/>
</td>
</tr>
<tr>
- <td colspan='4'>
- <span id="vl-upload-progress-span" class='hidden'>
- <div dojoType="dijit.ProgressBar" style="width:200px" indeterminate="true"></div>
- </span>
- </td>
- </tr>
- <tr>
<td align='center' colspan='4'>
<button dojoType="dijit.form.Button" onclick="batchUpload()">Upload</button>
</td>
Modified: trunk/Open-ILS/web/vandelay/vandelay.js
===================================================================
--- trunk/Open-ILS/web/vandelay/vandelay.js 2008-09-05 20:38:58 UTC (rev 10551)
+++ trunk/Open-ILS/web/vandelay/vandelay.js 2008-09-05 20:57:26 UTC (rev 10552)
@@ -37,7 +37,8 @@
'vl-queue-div',
'vl-match-div',
'vl-match-html-div',
- 'vl-queue-select-div'
+ 'vl-queue-select-div',
+ 'vl-marc-upload-status-div'
];
var authtoken;
@@ -174,12 +175,7 @@
*/
function uploadMARC(onload){
dojo.byId('vl-ses-input').value = authtoken;
- dojo.style(dojo.byId('vl-input-td'),"display","none");
- dojo.style(dojo.byId('vl-upload-progress-span'),"display","inline");
-
- dojo.style(dojo.byId('vl-file-label'), 'display', 'none');
- dojo.style(dojo.byId('vl-file-uploading'), 'display', 'inline');
-
+ displayGlobalDiv('vl-marc-upload-status-div');
dojo.io.iframe.send({
url: VANDELAY_URL,
method: "post",
@@ -187,10 +183,6 @@
form: dojo.byId('vl-marc-upload-form'),
handle: function(data,ioArgs){
var content = data.documentElement.textContent;
- dojo.style(dojo.byId('vl-input-td'),"display","inline");
- dojo.style(dojo.byId('vl-upload-progress-span'),"display","none");
- dojo.style(dojo.byId('vl-file-label'), 'display', 'inline');
- dojo.style(dojo.byId('vl-file-uploading'), 'display', 'none');
onload(content);
}
});
@@ -557,6 +549,7 @@
var handleUploadMARC = function(key) {
console.log('marc uploaded');
+ dojo.style(dojo.byId('vl-upload-status-processing'), 'display', 'block');
processSpool(key, currentQueueId, currentType, handleProcessSpool);
};
More information about the open-ils-commits
mailing list