comparison js/taggingtext.js @ 66:e71a437ae49f extractapp

New: responsive. some css style
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Thu, 02 Apr 2015 16:33:46 +0200
parents f9ae94a9b041
children 359f48d58cbc
comparison
equal deleted inserted replaced
65:f9ae94a9b041 66:e71a437ae49f
428 alert( "Tagged "+str.match(regexText).length+" entities!" ); 428 alert( "Tagged "+str.match(regexText).length+" entities!" );
429 } 429 }
430 430
431 function smartRegexNew() { 431 function smartRegexNew() {
432 $('#smartRegexPopUpDiv').css("display", "block"); 432 $('#smartRegexPopUpDiv').css("display", "block");
433 $('#smartRegexPopUpDiv').css("background-color", "White"); 433
434 $('#smartRegexPopUpDiv').css("width", "400px");
435 $('#smartRegexPopUpDiv').css("height", "300px");
436 $('#smartRegexPopUpDiv').css("top", "170px");
437 $('#smartRegexPopUpDiv').css("left", "-400px");
438 $('#smartRegexPopUpDiv').css("border", "1px solid black");
439 $('#smartRegexPopUpDiv').css("padding", "5px");
440
441 $('#smartRegexPopUpAdd').attr("disabled", false); 434 $('#smartRegexPopUpAdd').attr("disabled", false);
442 $('#smartRegexPopUpEdit').attr("disabled", "disabled"); 435 $('#smartRegexPopUpEdit').attr("disabled", "disabled");
443 $('#smartRegexPopUpDel').attr("disabled", "disabled"); 436 $('#smartRegexPopUpDel').attr("disabled", "disabled");
444 $('#smartRegexPopUpBack').attr("disabled", "disabled"); 437 $('#smartRegexPopUpBack').attr("disabled", "disabled");
445 $('#smartRegexPopUpFor').attr("disabled", "disabled"); 438 $('#smartRegexPopUpFor').attr("disabled", "disabled");
515 } 508 }
516 509
517 $(document).on("click", '#smartRegexShowDiv > span', function (e) { 510 $(document).on("click", '#smartRegexShowDiv > span', function (e) {
518 511
519 $('#smartRegexPopUpDiv').css("display", "block"); 512 $('#smartRegexPopUpDiv').css("display", "block");
520 $('#smartRegexPopUpDiv').css("background-color", "White"); 513
521 $('#smartRegexPopUpDiv').css("width", "400px");
522 $('#smartRegexPopUpDiv').css("height", "300px");
523 $('#smartRegexPopUpDiv').css("top", "100px");
524 $('#smartRegexPopUpDiv').css("left", "-400px");
525 $('#smartRegexPopUpDiv').css("border", "1px solid black");
526 //$('#smartRegexPopUpDiv').css("padding", "5px");
527
528
529 $('#smartRegexPopUpDiv').attr("editID", $(this).attr("id")); 514 $('#smartRegexPopUpDiv').attr("editID", $(this).attr("id"));
530 515
531 $('#smartRegexPopUpName').val($(this).text()); 516 $('#smartRegexPopUpName').val($(this).text());
532 // $('#smartRegexPopUpName').val($(this).html()); 517 // $('#smartRegexPopUpName').val($(this).html());
533 518
727 } 712 }
728 713
729 function smartRegexLoad(topic_id) { 714 function smartRegexLoad(topic_id) {
730 $('#load_regex_div').html(""); 715 $('#load_regex_div').html("");
731 $('#load_regex_div').css("display", "block"); 716 $('#load_regex_div').css("display", "block");
732 $('#load_regex_div').css("border", "1px solid black"); 717
733 $('#load_regex_div').css("background-color", "White");
734 $('#load_regex_div').css("width", "300px");
735 $('#load_regex_div').css("height", "70px");
736 $('#load_regex_div').css("top", "100px");
737 $('#load_regex_div').css("left", "-300px");
738
739 var newselect = document.createElement("select"); 718 var newselect = document.createElement("select");
740 newselect.id = "loadRegexSelect"; 719 newselect.id = "loadRegexSelect";
741 720
742 $.ajax({ 721 $.ajax({
743 type: 'POST', 722 type: 'POST',