diff --git a/views/bootstrap/class.Indexer.php b/views/bootstrap/class.Indexer.php index 4f08405f8..aa3a459ce 100644 --- a/views/bootstrap/class.Indexer.php +++ b/views/bootstrap/class.Indexer.php @@ -76,9 +76,9 @@ function check_queue() { success: function(data) { // console.log('success ' + data.data); if(data.success) { - $('#status_'+data.data).html('done'); + $('#status_'+data.data).html(''); } else { - $('#status_'+data.data).html('error'); + $('#status_'+data.data).html(''); noty({ text: data.message, type: (data.success) ? 'success' : 'error', @@ -109,7 +109,7 @@ $(document).ready( function() { $('.indexme').each(function(index) { var element = $(this); var docid = element.data('docid'); - element.html('Pending'); + element.html(''); funcArray.push(docid); }); docstoindex = funcArray.length; @@ -137,7 +137,7 @@ $(document).ready( function() { /* If the document wasn't indexed before then just add it */ $lucenesearch = new $indexconf['Search']($index); if(!($hit = $lucenesearch->getDocument($document->getId()))) { - echo " getID()."\" class=\"indexme indexstatus\" data-docid=\"".$document->getID()."\">Waiting"; + echo " getID()."\" class=\"indexme indexstatus\" data-docid=\"".$document->getID()."\">".getMLText('index_waiting').""; /* try { $index->addDocument(new $indexconf['IndexedDocument']($dms, $document, $this->converters ? $this->converters : null, false, $this->timeout)); @@ -162,7 +162,7 @@ $(document).ready( function() { echo $indent."getID()."\" class=\"indexstatus\" data-docid=\"".$document->getID()."\">document unchanged"; } else { $index->delete($hit->id); - echo " getID()."\" class=\"indexme indexstatus\" data-docid=\"".$document->getID()."\">Waiting"; + echo " getID()."\" class=\"indexme indexstatus\" data-docid=\"".$document->getID()."\">".getMLText('index_waiting').""; /* try { $index->addDocument(new $indexconf['IndexedDocument']($dms, $document, $this->converters ? $this->converters : null, false, $this->timeout)); @@ -211,13 +211,13 @@ li {line-height: 20px;}
-
Overall progress
+
-
Indexing tasks in queue
+
tree($dms, $index, $indexconf, $folder);