comparison develop/views/Extractapp/taggingtext.php @ 20:04db1dd9d10d

update topic_regex_relation table when saving (new) regex file
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Mon, 23 Feb 2015 14:34:43 +0100
parents 82f8c6bd2b69
children c805470cefee
comparison
equal deleted inserted replaced
19:f60969462226 20:04db1dd9d10d
98 var windowpos = $(window).scrollTop(); 98 var windowpos = $(window).scrollTop();
99 var finaldestination = windowpos+originalelpos; 99 var finaldestination = windowpos+originalelpos;
100 el.stop().animate({'top':finaldestination},500); 100 el.stop().animate({'top':finaldestination},500);
101 }); 101 });
102 */ 102 */
103
104 // Popup choosing topic if first time to this section. without branchId
105 var info = JSON.parse('<?php echo json_encode($info) ?>');
106 if (info['file_id'] == 0) { // or info['branchId'] == 0, means new file
107 // ask to choose topic
108 $.ajax({
109
110 });
111 var popup = document.getElementById('popup-window');
112
113 // alert('choose topic!');
114 };
103 115
104 }); 116 });
105 $(document).on("click", "name", function (e) { 117 $(document).on("click", "name", function (e) {
106 118
107 if ( $("#editTextId").html() != "Edit the text" ) return 0; 119 if ( $("#editTextId").html() != "Edit the text" ) return 0;
474 486
475 487
476 488
477 </script> 489 </script>
478 490
491 <div id="popup-window" style="display: none; background-color:white; height:300px; width:300px; margin:200 0 0 200;position:fixed; z-index:2">
492 </div>
479 493
480 <div class="container-fluid"> 494 <div class="container-fluid">
481 <div class="row"> 495 <div class="row">
482 <div class="col-xs-8 col-sm-8 col-md-8 col-lg-7 col-lg-offset-1" style="position:fixed; height:30px; z-index:99"> 496 <div class="col-xs-8 col-sm-8 col-md-8 col-lg-7 col-lg-offset-1" style="position:fixed; height:30px; z-index:99">
483 <p class="bg-info"> <?php echo $messages; ?> </p> 497 <p class="bg-info"> <?php echo $messages; ?> </p>
534 <div id="smartRegexShowDiv"></div><br> 548 <div id="smartRegexShowDiv"></div><br>
535 <button onclick="smartRegexNew()" style="height: 30px; width: 220px">Add Regex Group</button></br> 549 <button onclick="smartRegexNew()" style="height: 30px; width: 220px">Add Regex Group</button></br>
536 Range: <input type="text" size="5" id="regexPageStart">to<input type="text" size="5" id="regexPageEnd"><br> 550 Range: <input type="text" size="5" id="regexPageStart">to<input type="text" size="5" id="regexPageEnd"><br>
537 <button onclick="replaceSmartRun()" style="height: 30px; width: 220px">Run</button></br> 551 <button onclick="replaceSmartRun()" style="height: 30px; width: 220px">Run</button></br>
538 <button onclick="replaceSmartRunSpace()" style="height: 30px; width: 220px">Run(Allow space between Group)</button></br> 552 <button onclick="replaceSmartRunSpace()" style="height: 30px; width: 220px">Run(Allow space between Group)</button></br>
539 <button onclick="smartRegexSave()" style="height: 30px; width: 70px">Save</button> 553 <button onclick="smartRegexSave(<?php echo $default_topic_id; ?>)" style="height: 30px; width: 70px">Save</button>
540 <button onclick="smartRegexLoad(<?php echo $default_topic_id; ?>)" style="height: 30px; width: 70px">Load</button> 554 <button onclick="smartRegexLoad(<?php echo $default_topic_id; ?>)" style="height: 30px; width: 70px">Load</button>
541 <button onclick="smartRegexEmpty()" style="height: 30px; width: 70px">Clear</button></br> 555 <button onclick="smartRegexEmpty()" style="height: 30px; width: 70px">Clear</button></br>
542 <!-- 556 <!--
543 <button id="example" type="button" class="btn btn-sm btn-default" data-toggle="popover">Load</button> 557 <button id="example" type="button" class="btn btn-sm btn-default" data-toggle="popover">Load</button>
544 --> 558 -->