diff views/Extractapp/TaggingText.php @ 100:8a97db7b9108 extractapp

bug fixed: edit text
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Mon, 02 May 2016 15:47:03 +0200
parents c3e149277b58
children a264460c77ca
line wrap: on
line diff
--- a/views/Extractapp/TaggingText.php	Mon May 02 14:21:41 2016 +0200
+++ b/views/Extractapp/TaggingText.php	Mon May 02 15:47:03 2016 +0200
@@ -173,7 +173,7 @@
     
   
     $(document).on("click", taglistValue[2], function (e, taglistValue) {
-        if ($("#editTextId").html() != "Edit the text") return 0;
+        if ($("#editTextId").html() != "Edit text") return 0;
         var tag = $(this).prop("tagName").toLowerCase();
         //if (tagName != taglistValue[2]) return 0;
     
@@ -194,7 +194,7 @@
 foreach ( $taglistArray as $taglistValue ) {
 	echo '$(document).on("click", "'.$taglistValue[2].'", function (e) {'."\n";
 	echo "\t".'if ( $(this).prop("tagName").toLowerCase() != "'.$taglistValue[2].'" ) return 0;'."\n";
-	echo "\t".'if ( $("#editTextId").html() != "Edit the text" ) return 0;'."\n";
+	echo "\t".'if ( $("#editTextId").html() != "Edit text" ) return 0;'."\n";
 	echo "\tremoveTagNewDiv( e, \"".$taglistValue[2]."\", $(this) );\n";
 	echo "});\n";
 }
@@ -282,7 +282,7 @@
     $('.questionMarkClass').remove();
     $('.tagItemDivClass').remove();
    
-    if ( $("#editTextId").html() != "Edit the text" ) return 0;
+    if ( $("#editTextId").html() != "Edit text" ) return 0;
     
     //var selection = getSelected();
     selection = getSelected();  // selection is a global variable
@@ -1514,8 +1514,7 @@
                         <div class="collapse in" id="tool_edit">
                             <button onclick="editText()" id="editTextId" class="btn btn-default">Edit text</button>
                             <button onclick="Undo()" class="btn btn-default" id="buttonUndo" disabled="true">Undo changes</button>
-                      
-                       
+                    
                             <button onclick="saveTextToLGService()" id="save_text_to_LGService_id" class="btn btn-default btn-block">Save to LGService</button>
                             <button onclick="exportAll(<?php echo $default_topic_id;?>)" class="btn btn-default btn-block">Export All</button>
                             Page: <input type="text" size="5" id="exportPageStart">to<input type="text" size="5" id="exportPageEnd">
@@ -1539,8 +1538,8 @@
                             <button onclick="smartRegexLoad(<?php echo $default_topic_id; ?>)" class="btn btn-default">Load</button>
                             <button onclick="smartRegexSave(<?php echo $default_topic_id; ?>)" class="btn btn-default">Save</button>
                             <button onclick="smartRegexEmpty()" class="btn btn-default">Clear</button></br></br>
-                                Tag only for this range: <br>
-                                <input type="text" size="5" id="regexPageStart">to<input type="text" size="5" id="regexPageEnd"><br>
+                            Tag only for this range: </br>
+                            <input type="text" size="5" id="regexPageStart">to<input type="text" size="5" id="regexPageEnd"></br>
                             <button onclick="replaceSmartRun()" class="btn btn-default">Tag</button>
                             <button onclick="replaceSmartRunWithBr()" class="btn btn-default">Tag (with line break)</button>
                             <!-- <button onclick="replaceSmartRunSpace()" class="btn-lg">Run(Allow space between Group)</button></br>