comparison views/Extractapp/TaggingText.php @ 68:6676ca451dcc extractapp

New: check taglist is deprecated or not. Change url 'LGserver'->'LGServices'
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Tue, 07 Apr 2015 14:59:39 +0200
parents 3ada9334ebfc
children 359f48d58cbc
comparison
equal deleted inserted replaced
67:3ada9334ebfc 68:6676ca451dcc
206 // TOOD: ask user to modify/decide tags 206 // TOOD: ask user to modify/decide tags
207 // showing taglist_infile and taglistArray 207 // showing taglist_infile and taglistArray
208 alert("taglist is deprecated in the current file."); 208 alert("taglist is deprecated in the current file.");
209 209
210 } 210 }
211
212 // --- handle old version taglist ---
213 // --- TODO: check if taglist in file is up-to-date ---
214 /*
215 var taglist_infile = JSON.parse('<?php echo json_encode($taglist_infile) ?>');
216 if (taglist_infile != "") {
217 // TODO: pop up to ask if load the latest taglist
218 var retVal = confirm("Tag list in file is not up-to-date. \nDo you want to load file with new tag list?");
219 if( retVal == true ){
220 // use $taglisArray
221 alert("Load file with new tag list.");
222 }else{
223 // use $taglist_infile as $taglistArray
224 <?php
225 // $taglistArray = $taglist_infile;
226 ?>
227 alert("You are viewing the file with old version of tag list. Please use the up-to-date taglist.");
228 }
229 //_showTagColor(retVal);
230 <?php $taglist_infile = ""; ?>
231 }
232 */
233
234
235 211
236 }); 212 });
237 213
238 $(document).on("mouseup", '#editable-area', function (e) { 214 $(document).on("mouseup", '#editable-area', function (e) {
239 215