Mercurial > hg > extraction-interface
comparison develop/views/Extractapp/taggingtext.php @ 16:fb948097de39
fix bug: Edittaglist is working on Firefox.
fix bug: name of regex used to show with strange <span id="transmark"></span> showing only on FF but not Saf. Change it to use "document.getElementById(id).textContent to get the pure text string.
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Fri, 20 Feb 2015 16:39:08 +0100 |
parents | 1f98c92ebbfb |
children | 82f8c6bd2b69 |
comparison
equal
deleted
inserted
replaced
15:1f98c92ebbfb | 16:fb948097de39 |
---|---|
83 } | 83 } |
84 ?> | 84 ?> |
85 | 85 |
86 $(document).ready(function(){ | 86 $(document).ready(function(){ |
87 //run once | 87 //run once |
88 /* no need, fixed sidebar | |
88 var el=$('#follow-scroll'); | 89 var el=$('#follow-scroll'); |
89 var originalelpos=el.offset().top; // take it where it originally is on the page | 90 var originalelpos=el.offset().top; // take it where it originally is on the page |
91 */ | |
90 | 92 |
91 //run on scroll | 93 //run on scroll |
92 /* | 94 /* |
93 $(window).scroll(function(){ | 95 $(window).scroll(function(){ |
94 var el = $('#follow-scroll'); // important! (local) | 96 var el = $('#follow-scroll'); // important! (local) |
462 echo "}"; | 464 echo "}"; |
463 } | 465 } |
464 ?> | 466 ?> |
465 }); | 467 }); |
466 | 468 |
467 $(function () { | |
468 | |
469 $('#example').popover({ | |
470 //selector: '.has-popover' | |
471 content: function () { | |
472 return; | |
473 }, | |
474 //template: output_content, | |
475 title: "Load Regex" | |
476 }); | |
477 }) | |
478 | |
479 | |
480 | 469 |
481 // init for popover used in bootstrap | 470 // init for popover used in bootstrap |
482 $(function () { | 471 $(function () { |
483 $('[data-toggle="popover"]').popover() | 472 $('[data-toggle="popover"]').popover() |
484 }) | 473 }) |
474 | |
475 | |
485 | 476 |
486 </script> | 477 </script> |
487 | 478 |
488 | 479 |
489 <div class="container-fluid"> | 480 <div class="container-fluid"> |
525 <button onclick="replaceSmartClose()" class="btn btn-default" style="">Close</button> | 516 <button onclick="replaceSmartClose()" class="btn btn-default" style="">Close</button> |
526 </div> | 517 </div> |
527 | 518 |
528 </div> | 519 </div> |
529 </div> | 520 </div> |
530 | |
531 | 521 |
532 <div id="follow-scroll" class="col-xs-4 col-xs-offset-8 col-sm-4 col-sm-offset-8 col-md-4 col-md-offset-8 col-lg-4 col-lg-offset-8" style="position:fixed; width:300px; height:900px; overflow:scroll; float:right"> | 522 <div id="follow-scroll" class="col-xs-4 col-xs-offset-8 col-sm-4 col-sm-offset-8 col-md-4 col-md-offset-8 col-lg-3 col-lg-offset-8" style="position:fixed; width:100%; height:700px; overflow:scroll;"> |
533 <form action="javascript:void(0);"> | 523 <form action="javascript:void(0);"> |
534 <fieldset> | 524 <fieldset> |
535 <legend><h5 class="text-success"> Config Topic: </h5></legend> | 525 <legend><h5 class="text-success"> Config Topic: </h5></legend> |
536 <div> current topic is <?php echo $topic_name; ?> | 526 <div> current topic is <?php echo $topic_name; ?> |
537 <button onclick="chooseTopic(<?php echo $default_topic_id; ?>)" class="btn btn-xs btn-default">Change</button> | 527 <button onclick="chooseTopic(<?php echo $default_topic_id; ?>)" class="btn btn-xs btn-default">Change</button> |