diff options
author | 黃勁捷 <pizza159630@gmail.com> | 2012-12-24 20:05:16 +0800 |
---|---|---|
committer | 黃勁捷 <pizza159630@gmail.com> | 2012-12-24 20:05:16 +0800 |
commit | 07dc8373fec08588da5419fb2b65cdbc6b52a334 (patch) | |
tree | 2d23bdceb6b7eab2b1fb110a526d7cc3edafc7e7 | |
parent | 22e3e977bf784def89dabaaccc02f559fe1c0730 (diff) | |
download | inccalendar-07dc8373fec08588da5419fb2b65cdbc6b52a334.tar.gz inccalendar-07dc8373fec08588da5419fb2b65cdbc6b52a334.tar.zst inccalendar-07dc8373fec08588da5419fb2b65cdbc6b52a334.zip |
終於弄好輸入有HTML TAG的問題了
-rw-r--r-- | css/list.css | 7 | ||||
-rw-r--r-- | jinhtml/list.html | 5 | ||||
-rw-r--r-- | js/list.js | 17 |
3 files changed, 4 insertions, 25 deletions
diff --git a/css/list.css b/css/list.css index 606f778..7a90e6d 100644 --- a/css/list.css +++ b/css/list.css @@ -74,13 +74,6 @@ div#unmatchedmessage { } #neweventbutton { font-size:2.5em; - color:gray; -} -#neweventblock { - cursor:pointer; -} -#neweventblock:hover #neweventbutton { - color:black; } .title { border-right-width:0px; diff --git a/jinhtml/list.html b/jinhtml/list.html index 43409cf..5aa5e2d 100644 --- a/jinhtml/list.html +++ b/jinhtml/list.html @@ -13,8 +13,9 @@ {% endblock %} {% block headjs %} - <script> - </script> + <script src = "/js/data.js" type = "text/javascript"></script> + <script src = "/js/list.js" type = "text/javascript"></script> + <!-- <script src = "> --> {% endblock %} {% block body %} @@ -349,7 +349,6 @@ function switchbacktonormalmode (eventid) { var checkclass = ["content", "remind", "year", "month", "date", "hour", "minute"]; $ ("#" + "newevent" + "head").css ("display", "none"); $ ("#" + "newevent" + "content").css ("display", "none"); - $ ("#neweventblock").css ("display", "block"); for (var i = 0 ; i < checkclass.length ; i++) { $ ("#input" + "newevent" + checkclass[i]).css ("background-color", "white"); } @@ -667,7 +666,7 @@ function cancelupdateevent (eventid) { for (var i = 0 ; i < headdataclass.length ; i++) { $ ("#" + eventid + headdataclass[i]).text (originevent[i]); } - $ ("#" + eventid + "content").html ("<pre id = '" + eventid + "contentpre'></pre>" + $ ("#" + eventid + "content").html ("<pre id = '" + eventid + "contentpre'></pre>"); $ ("#" + eventid + "contentpre").text (originevent[4]); for (var i = 0 ; i < headdataclass.length ; i++) { $ ("#" + eventid + headdataclass[i]).attr ("onclick", "togglecontent (this.id)"); @@ -678,22 +677,10 @@ function cancelupdateevent (eventid) { function resumeeditbutton () { //恢復其他活動的編輯 恢復新增活動 $ (".editbutton").attr ("disabled", false); - $ ("#neweventblock").css ("cursor", "pointer"); - $ ("#neweventblock").hover (function () { - $ ("#neweventbutton").css ("color", "black"); - }, function () { - $ ("#neweventbutton").css ("color", "gray"); - }); - $ ("#neweventblock").attr ("onclick", "displayneweventinput ();"); } function disableeditbutton () { //停用其他活動的編輯 停用新增活動 $ (".editbutton").attr ("disabled", true); - $ ("#neweventblock").css ("cursor", "auto"); //編輯現有活動 - $ ("#neweventblock").hover (function () { - $ ("#neweventbutton").css ("color", "gray"); - }); - $ ("#neweventblock").removeAttr ("onclick"); } function inputkeyup (dataid) { //dataid starts with 'input' @@ -850,7 +837,6 @@ function setnonchangingyearcss () {//set cursor, even,odd color, next,prev page $ (".event:odd").css ("background-color", "#33FFFF"); $ ("#prevpagebutton").attr ("disabled", (curpage == 1)); $ ("#nextpagebutton").attr ("disabled", (curpage * 10 >= calevent.length)); - $ ("#neweventblock").css ("display", "block"); $ ("#" + "newevent" + "head").css ("display", "none"); $ ("#" + "newevent" + "content").css ("display", "none"); resumeeditbutton (); @@ -875,7 +861,6 @@ function timetostring (hour, minute) {//12:0 => 12:00 } function displayneweventinput () { - $ ("#neweventblock").css ("display", "none"); $ ("#neweventhead").css ("display", "table-row"); $ ("#neweventcontent").slideDown (250); pushneweventdata (); |