diff views/Extractapp/TaggingText.php @ 103:2cc65ff46174 extractapp

minor fixed
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Mon, 25 Jul 2016 17:10:16 +0200
parents 6ba742b712b0
children e542b161d907
line wrap: on
line diff
--- a/views/Extractapp/TaggingText.php	Wed May 25 11:29:28 2016 +0200
+++ b/views/Extractapp/TaggingText.php	Mon Jul 25 17:10:16 2016 +0200
@@ -218,6 +218,9 @@
 */
 
 $(document).ready(function(){
+
+    $("#loading").hide();
+
     // --- for sidebar--- 
     //run once
     var el=$('#follow-scroll');
@@ -271,7 +274,7 @@
     var info = JSON.parse('<?php echo json_encode($info) ?>');
     // the first time to this section. without branch_id and file_id
     if (info['file_id'] == 0) {  // or info['branch_id'] == 0, means new file
-        $( "#save_text_to_LGService_id").text( "Create(Save) Branch to LGService" );
+        $( "#save_text_to_LGService_id").text( "Create(Save) Task to LGService" );
 
     }
     handleFileVersionConflict();
@@ -902,6 +905,8 @@
 
 function tagwithOnlytag( range, selection, tag ) {
     
+    $('#loading').show();
+
     saveUndoText();
     var topic_tag = JSON.parse('<?php echo json_encode($topic_tag) ?>');
     var topic_tag2 = topic_tag+"2";
@@ -936,6 +941,8 @@
 
 
     $('.tagItemDivClass').remove();
+
+    $('#loading').hide();
 }
 
 function tagwithOnlytag_old( range, stringSelection, tag ) {
@@ -960,6 +967,7 @@
 
 
     $('.tagItemDivClass').remove();
+
 }
 
 function replaceSmartRegex() {
@@ -1039,7 +1047,7 @@
         }
         
 
-        var label = prompt("Please enter your label for this new branch", default_label);
+        var label = prompt("Please enter your label for this new task", default_label);
         while (label == null) {
             alert("You haven't saved your editing.");
             return;
@@ -1372,6 +1380,7 @@
 </fieldset>
 
 -->
+<div id="loading">...</div>
 
 <div class="info-board">
     <div class="bg-danger"><strong><?php echo $messages['error']; ?> </strong></div>
@@ -1384,7 +1393,6 @@
     -->
 </div>
 
-
 <table border="1" style="margin:10 30 30 30; width:100%; max-width:1270px; min-width:680px">
     <tr>
         <td style="padding:0 5 0 5; margin: 0 5 0 5;">