# HG changeset patch # User Zoe Hong # Date 1427985226 -7200 # Node ID e71a437ae49f2dba81eb64aa4f64bb19887b835e # Parent f9ae94a9b04100ac67f15cf837007fd573883e61 New: responsive. some css style diff -r f9ae94a9b041 -r e71a437ae49f css/taggingtext.css --- a/css/taggingtext.css Thu Apr 02 11:45:09 2015 +0200 +++ b/css/taggingtext.css Thu Apr 02 16:33:46 2015 +0200 @@ -10,18 +10,61 @@ background-color: #E7F3FF; } - .bg-default{ background-color: #F4F4F4; - } .info-board{ margin:10 30 10 30; + width: 100%; + max-width:1270px; + min-width: 680px; border: 2px solid #A1A1A1; border-radius: 4px; - max-width:1270; height:70px; overflow:scroll; overflow-x:hidden; -} \ No newline at end of file +} +#follow-scroll { + position:absolute; + height:680px; + overflow:scroll; + margin:0 5 15 5; + max-width:280px; + border: 1px solid #A1A1A1; + border-radius: 4px; +} + +.popup-frame { + position: absolute; + display: none; + background-color: white; + border: 2px solid #A1A1A1; + border-radius: 4px; + padding: 5px; +} + +.popup-regex { + left: -400px; + width: 400px; + height: 300px; + top: 100px; + z-index: 2; +} + +.popup-loadregex{ + left: -300px; + width: 300px; + height: 70px; + top: 100px; + z-index: 2; + +} + +.popup-topic { + left: -200px; + width: 200px; + height: 50px; + top: 20px; + z-index: 2; +} diff -r f9ae94a9b041 -r e71a437ae49f js/taggingtext.js --- a/js/taggingtext.js Thu Apr 02 11:45:09 2015 +0200 +++ b/js/taggingtext.js Thu Apr 02 16:33:46 2015 +0200 @@ -430,14 +430,7 @@ function smartRegexNew() { $('#smartRegexPopUpDiv').css("display", "block"); - $('#smartRegexPopUpDiv').css("background-color", "White"); - $('#smartRegexPopUpDiv').css("width", "400px"); - $('#smartRegexPopUpDiv').css("height", "300px"); - $('#smartRegexPopUpDiv').css("top", "170px"); - $('#smartRegexPopUpDiv').css("left", "-400px"); - $('#smartRegexPopUpDiv').css("border", "1px solid black"); - $('#smartRegexPopUpDiv').css("padding", "5px"); - + $('#smartRegexPopUpAdd').attr("disabled", false); $('#smartRegexPopUpEdit').attr("disabled", "disabled"); $('#smartRegexPopUpDel').attr("disabled", "disabled"); @@ -517,15 +510,7 @@ $(document).on("click", '#smartRegexShowDiv > span', function (e) { $('#smartRegexPopUpDiv').css("display", "block"); - $('#smartRegexPopUpDiv').css("background-color", "White"); - $('#smartRegexPopUpDiv').css("width", "400px"); - $('#smartRegexPopUpDiv').css("height", "300px"); - $('#smartRegexPopUpDiv').css("top", "100px"); - $('#smartRegexPopUpDiv').css("left", "-400px"); - $('#smartRegexPopUpDiv').css("border", "1px solid black"); - //$('#smartRegexPopUpDiv').css("padding", "5px"); - $('#smartRegexPopUpDiv').attr("editID", $(this).attr("id")); $('#smartRegexPopUpName').val($(this).text()); @@ -729,13 +714,7 @@ function smartRegexLoad(topic_id) { $('#load_regex_div').html(""); $('#load_regex_div').css("display", "block"); - $('#load_regex_div').css("border", "1px solid black"); - $('#load_regex_div').css("background-color", "White"); - $('#load_regex_div').css("width", "300px"); - $('#load_regex_div').css("height", "70px"); - $('#load_regex_div').css("top", "100px"); - $('#load_regex_div').css("left", "-300px"); - + var newselect = document.createElement("select"); newselect.id = "loadRegexSelect"; diff -r f9ae94a9b041 -r e71a437ae49f models/extractapp.php --- a/models/extractapp.php Thu Apr 02 11:45:09 2015 +0200 +++ b/models/extractapp.php Thu Apr 02 16:33:46 2015 +0200 @@ -269,7 +269,7 @@ } else if ($status == "error") { // saving not success $this->messages['error'] .= "[Error] Saving Failed! ".(string)$response["message"]."
"; - $this->messages['warning'] .= "[Warning] Please check branch ".$this->branch_id." in LGService, and modify from the latest version.
"; + $this->messages['warning'] .= "[Warning] Please check branch ".$this->branch_id." in LGService, and modify from the latest version."; $response_currentFile = $response["currentFile"]; $this->current_fileId = (string)$response_currentFile["id"]; diff -r f9ae94a9b041 -r e71a437ae49f views/Extractapp/TaggingText.php --- a/views/Extractapp/TaggingText.php Thu Apr 02 11:45:09 2015 +0200 +++ b/views/Extractapp/TaggingText.php Thu Apr 02 16:33:46 2015 +0200 @@ -141,7 +141,6 @@ var el=$('#follow-scroll'); var originalelpos=el.offset().top; // take it where it originally is on the page - //run on scroll $(window).scroll(function(){ var el = $('#follow-scroll'); // important! (local) @@ -338,6 +337,9 @@ } //e.stopPropagation(); + + + }); @@ -666,14 +668,14 @@ $('#load_topic_div').html(""); $('#load_topic_div').css("display", "block"); - + /* $('#load_topic_div').css("border", "1px solid black"); $('#load_topic_div').css("background-color", "White"); $('#load_topic_div').css("width", "200px"); $('#load_topic_div').css("height", "50px"); $('#load_topic_div').css("top", "20px"); $('#load_topic_div').css("left", "-200px"); - + */ var topic_select = document.createElement("select"); topic_select.id = "loadTopiclist"; @@ -834,13 +836,12 @@ } - $(document).on("change", '#smartRegexPopUpSelectWord', function (e) { var wordlistArray = JSON.parse(''); for (var i = 0; i < wordlistArray.length; i++) { - var wordlistValue = wordlistArray[i]; - if ($('#smartRegexPopUpSelectWord').val() == wordlistValue[0]) { + var wordlistValue = wordlistArray[i]; // wordlistValue is array(id, name, listString) + if ($('#smartRegexPopUpSelectWord').val() == wordlistValue[0]) { var textarea_text = $('#smartRegexPopUpText').val(); // insert selected wordlist into textarea at cursor position var cursorPosition = $('#smartRegexPopUpText').prop("selectionStart"); @@ -852,11 +853,8 @@ $('#smartRegexPopUpText').val( text_before_cursor+"["+wordlistValue[2]+"]{1,1}"+text_after_cursor); } } - }); - -
@@ -871,16 +869,16 @@
- +
-
-
+
+
- - - -
+
Config Topic: