comparison develop/views/Extractapp/taggingtext.php @ 9:584b1623e9ef

TOC correction list page updated
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Mon, 09 Feb 2015 18:59:24 +0100
parents da10158c6d0a
children 54a235d43694
comparison
equal deleted inserted replaced
8:da10158c6d0a 9:584b1623e9ef
2 // --- initialize config file and input text --- 2 // --- initialize config file and input text ---
3 $stringInput = $viewmodel['stringInput']; 3 $stringInput = $viewmodel['stringInput'];
4 $wordlistArray = $viewmodel['wordlistArray']; 4 $wordlistArray = $viewmodel['wordlistArray'];
5 $taglistArray = $viewmodel['taglistArray']; 5 $taglistArray = $viewmodel['taglistArray'];
6 $section_id = $viewmodel['section_id']; 6 $section_id = $viewmodel['section_id'];
7
8
9 var_dump($taglistArray);
7 10
8 ?> 11 ?>
9 12
10 <html> 13 <html>
11 <head> 14 <head>
134 newdiv.appendChild(newselect); 137 newdiv.appendChild(newselect);
135 138
136 newdiv.innerHTML += "<input id=\"RemoveTitletagName\" value=\"\"></br>"; 139 newdiv.innerHTML += "<input id=\"RemoveTitletagName\" value=\"\"></br>";
137 newdiv.innerHTML += "<button onclick=\"removeTagTitle( range, container )\">Remove</button></br>"; 140 newdiv.innerHTML += "<button onclick=\"removeTagTitle( range, container )\">Remove</button></br>";
138 } else { 141 } else {
142 // for pop up window on edit-area for tag list
139 newdiv.innerHTML = "Tag: "+String(selection)+"<br>"; 143 newdiv.innerHTML = "Tag: "+String(selection)+"<br>";
140 144
141 newdiv.innerHTML += "<button accesskey=\"2\" onclick=\"tagwithtitle( range, '"+String(selection)+"' )\">Tag As Title</button></br>"; 145 newdiv.innerHTML += "<button accesskey=\"2\" onclick=\"tagwithtitle( range, '"+String(selection)+"' )\">Tag As Title</button></br>";
142 146
143 <?php 147 <?php
221 } 225 }
222 } 226 }
223 227
224 228
225 $(document).on("change", '#smartRegexPopUpSelectWord', function (e) { 229 $(document).on("change", '#smartRegexPopUpSelectWord', function (e) {
230
226 <?php 231 <?php
227 foreach ( $wordlistArray as $wordlistValue ) { 232 foreach ( $wordlistArray as $wordlistValue ) {
228 echo "if ( $('#smartRegexPopUpSelectWord').val() == \"".$wordlistValue[0]."\") {"; 233 echo "if ( $('#smartRegexPopUpSelectWord').val() == \"".$wordlistValue[0]."\") {";
229 echo "$('#smartRegexPopUpText').val(\"".$wordlistValue[2]."\");"; 234 echo "$('#smartRegexPopUpText').val(\"".$wordlistValue[2]."\");";
230 echo "}"; 235 echo "}";