Distinguish between Download (for remote disks/files) and Load (for local disks/files)

This commit is contained in:
Jeff Parsons 2014-11-10 15:42:01 -08:00 committed by jeffpar
commit afc6c3cbd1
12 changed files with 17 additions and 15 deletions

View file

@ -162,7 +162,7 @@ C1PSerialPort.prototype.setBinding = function(sHTMLClass, sHTMLType, sBinding, c
};
}
else {
if (DEBUG) this.log("FileReader support not available, Mount disabled");
if (DEBUG) this.log("Local file support not available");
control.parentNode.removeChild(control);
}
return true;

View file

@ -289,7 +289,7 @@
<form class="{$APPCLASS}-{@class}" style="{$border}{$width}{$height}{$style}" data-value="{$type},{$binding}">
<fieldset class="{$APPCLASS}-fieldset">
<input type="file"/>
<input type="submit" value="Mount" disabled="true"/>
<input type="submit" value="Load" disabled="true"/>
</fieldset>
</form>
</xsl:when>

View file

@ -501,7 +501,7 @@ FDC.prototype.setBinding = function(sHTMLClass, sHTMLType, sBinding, control)
};
}
else {
if (DEBUG) this.log("FileReader support not available, Mount disabled");
if (DEBUG) this.log("Local file support not available");
control.parentNode.removeChild(control);
}
return true;

View file

@ -360,7 +360,7 @@
<form class="{$APPCLASS}-{@class}" data-value="{$type},{$binding}">
<fieldset class="{$APPCLASS}-fieldset">
<input type="file"/>
<input type="submit" value="Mount" disabled="true"/>
<input type="submit" value="Load" disabled="true"/>
</fieldset>
</form>
</xsl:when>