Mercurial > hg > extraction-interface
changeset 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 |
files | js/taggingtext.js views/Extractapp/TaggingText.php |
diffstat | 2 files changed, 9 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/js/taggingtext.js Mon May 02 14:21:41 2016 +0200 +++ b/js/taggingtext.js Mon May 02 15:47:03 2016 +0200 @@ -210,7 +210,7 @@ function editText() { var el = document.getElementById("editable-area"); - if ( $("#editTextId").html() == "Edit the text" ) { + if ( $("#editTextId").html() == "Edit text" ) { // --- in editing mode --- saveUndoText(); el.contentEditable = true; @@ -232,7 +232,7 @@ $("button").attr("disabled", false); $("#popups").css("display","block"); // open the popup windows $("input").attr('disabled', false); // enable input - $("#editTextId").html("Edit the text"); + $("#editTextId").html("Edit text"); } } @@ -1358,7 +1358,7 @@ document.getElementById("button-area").innerHTML= "<form action=\"javascript:void(0);\"> \ <fieldset><legend>Edit:</legend> \ - <button id=\"buttonEditText\" onclick=\"editWordlistText("+id+")\" style=\"height: 30px; width: 220px\">Edit the text</button></br> \ + <button id=\"buttonEditText\" onclick=\"editWordlistText("+id+")\" style=\"height: 30px; width: 220px\">Edit text</button></br> \ <button id=\"buttonSaveText\" onclick=\"saveWordlist("+id+")\" style=\"height: 30px; width: 220px\">Save the text</button> \ </fieldset> \ <fieldset><legend>Replace By Regex:</legend> \
--- 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>