mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
add note when document content was not indexed
This commit is contained in:
parent
9fb899a61a
commit
5571fc4385
|
@ -800,9 +800,12 @@ switch($command) {
|
|||
}
|
||||
}
|
||||
}
|
||||
$index->addDocument($idoc);
|
||||
header('Content-Type: application/json');
|
||||
echo json_encode(array('success'=>true, 'message'=>getMLText('splash_document_indexed'), 'data'=>$document->getID()));
|
||||
if(false === $index->addDocument($idoc)) {
|
||||
echo json_encode(array('success'=>false, 'message'=>getMLText('error_document_indexed'), 'data'=>$document->getID()));
|
||||
} else {
|
||||
echo json_encode(array('success'=>true, 'message'=>getMLText('splash_document_indexed'), 'data'=>$document->getID(), 'cmd'=>$idoc->getCmd()));
|
||||
}
|
||||
} else {
|
||||
header('Content-Type: application/json');
|
||||
echo json_encode(array('success'=>false, 'message'=>$error, 'data'=>$document->getID(), 'mimetype'=>$idoc->getMimeType(), 'cmd'=>$idoc->getCmd()));
|
||||
|
|
|
@ -77,7 +77,10 @@ function check_queue() {
|
|||
success: function(data) {
|
||||
// console.log('success ' + data.data);
|
||||
if(data.success) {
|
||||
$('#status_'+data.data).html('<?php printMLText('index_done'); ?>');
|
||||
if(data.cmd)
|
||||
$('#status_'+data.data).html('<?php printMLText('index_done'); ?>');
|
||||
else
|
||||
$('#status_'+data.data).html('<?= getMLText('index_done').' ('.getMLText('index_no_content').')'; ?>');
|
||||
} else {
|
||||
$('#status_'+data.data).html('<?php printMLText('index_error'); ?>');
|
||||
noty({
|
||||
|
|
Loading…
Reference in New Issue
Block a user