|
@@ -394,7 +394,7 @@ EOF
|
|
function ajaxFileUpload()
|
|
function ajaxFileUpload()
|
|
{
|
|
{
|
|
//starting setting some animation when the ajax starts and completes
|
|
//starting setting some animation when the ajax starts and completes
|
|
- $("#loading").ajaxStart(function(){
|
|
|
|
|
|
+ $("#attachment_loading").ajaxStart(function(){
|
|
$(this).show();
|
|
$(this).show();
|
|
}).ajaxComplete(function(){
|
|
}).ajaxComplete(function(){
|
|
$(this).hide();
|
|
$(this).hide();
|
|
@@ -462,9 +462,9 @@ EOF
|
|
$oPage->add('</span>');
|
|
$oPage->add('</span>');
|
|
$oPage->add('<div style="clear:both"></div>');
|
|
$oPage->add('<div style="clear:both"></div>');
|
|
$sMaxUpload = $this->GetMaxUpload();
|
|
$sMaxUpload = $this->GetMaxUpload();
|
|
- $oPage->p(Dict::S('Attachments:AddAttachment').'<input type="file" name="file" id="file" onChange="ajaxFileUpload();"><span style="display:none;" id="loading"> <img src="../images/indicator.gif"></span> '.$sMaxUpload);
|
|
|
|
|
|
+ $oPage->p(Dict::S('Attachments:AddAttachment').'<input type="file" name="file" id="file" onChange="ajaxFileUpload();"><span style="display:none;" id="attachment_loading"> <img src="../images/indicator.gif"></span> '.$sMaxUpload);
|
|
//$oPage->p('<input type="button" onClick="ajaxFileUpload();" value=" Upload !">');
|
|
//$oPage->p('<input type="button" onClick="ajaxFileUpload();" value=" Upload !">');
|
|
- $oPage->p('<span style="display:none;" id="loading">Loading, please wait...</span>');
|
|
|
|
|
|
+ $oPage->p('<span style="display:none;" id="attachment_loading">Loading, please wait...</span>');
|
|
$oPage->add('</fieldset>');
|
|
$oPage->add('</fieldset>');
|
|
if ($this->m_bDeleteEnabled)
|
|
if ($this->m_bDeleteEnabled)
|
|
{
|
|
{
|