[Notice] Announcing the End of Demo Server [Read me]

Fixed `temporarySaveHandler` typo Fixed inappropriate comment
Fixed inappropriate comment
@f9bbab650fda33f79cd3f147cf6fc457be2122cc
--- minify-js.sh
+++ minify-js.sh
... | ... | @@ -22,7 +22,7 @@ |
22 | 22 |
# cat $PUBLIC_JAVASCRIPTS/lib/jquery/jquery.tmpl.js $PUBLIC_JAVASCRIPTS/lib/jquery/jquery.form.js $PUBLIC_JAVASCRIPTS/lib/jquery/jquery.validate.js $PUBLIC_JAVASCRIPTS/lib/jquery/jquery.requestAs.js $PUBLIC_JAVASCRIPTS/lib/jquery/jquery.search.js $PUBLIC_JAVASCRIPTS/lib/jquery/jquery.zclip.min.js $PUBLIC_JAVASCRIPTS/lib/jquery/jquery.placeholder.min.js $PUBLIC/bootstrap/js/bootstrap.js $PUBLIC_JAVASCRIPTS/lib/rgbcolor.js $PUBLIC_JAVASCRIPTS/lib/humanize.js $PUBLIC_JAVASCRIPTS/lib/validate.js $PUBLIC_JAVASCRIPTS/lib/xss.js $PUBLIC_JAVASCRIPTS/lib/clipboard.js > $OUT_DIR/yona-common.js |
23 | 23 |
|
24 | 24 |
# yona-lib.js |
25 |
-java -jar $CLOSURE_COMPILER --js $PUBLIC_JAVASCRIPTS/common/yobi.Attachments.js $PUBLIC_JAVASCRIPTS/common/yobi.Files.js $PUBLIC_JAVASCRIPTS/common/yobi.Mention.js $PUBLIC_JAVASCRIPTS/common/yobi.Markdown.js $PUBLIC_JAVASCRIPTS/common/yobi.Pagination.js $PUBLIC_JAVASCRIPTS/common/yobi.ShortcutKey.js $PUBLIC_JAVASCRIPTS/common/yobi.ui.Dropdown.js $PUBLIC_JAVASCRIPTS/common/yobi.ui.Typeahead.js $PUBLIC_JAVASCRIPTS/common/yobi.ui.Dialog.js $PUBLIC_JAVASCRIPTS/common/yobi.ui.Toast.js $PUBLIC_JAVASCRIPTS/common/yobi.ui.Tabs.js $PUBLIC_JAVASCRIPTS/common/yobi.OriginalMessage.js $PUBLIC_JAVASCRIPTS/service/yona.temprarySaveHandler.js --js_output_file $OUT_DIR/yona-lib.js |
|
25 |
+java -jar $CLOSURE_COMPILER --js $PUBLIC_JAVASCRIPTS/common/yobi.Attachments.js $PUBLIC_JAVASCRIPTS/common/yobi.Files.js $PUBLIC_JAVASCRIPTS/common/yobi.Mention.js $PUBLIC_JAVASCRIPTS/common/yobi.Markdown.js $PUBLIC_JAVASCRIPTS/common/yobi.Pagination.js $PUBLIC_JAVASCRIPTS/common/yobi.ShortcutKey.js $PUBLIC_JAVASCRIPTS/common/yobi.ui.Dropdown.js $PUBLIC_JAVASCRIPTS/common/yobi.ui.Typeahead.js $PUBLIC_JAVASCRIPTS/common/yobi.ui.Dialog.js $PUBLIC_JAVASCRIPTS/common/yobi.ui.Toast.js $PUBLIC_JAVASCRIPTS/common/yobi.ui.Tabs.js $PUBLIC_JAVASCRIPTS/common/yobi.OriginalMessage.js $PUBLIC_JAVASCRIPTS/service/yona.temporarySaveHandler.js --js_output_file $OUT_DIR/yona-lib.js |
|
26 | 26 |
|
27 | 27 |
# for dev |
28 |
-# cat $PUBLIC_JAVASCRIPTS/common/yobi.Attachments.js $PUBLIC_JAVASCRIPTS/common/yobi.Files.js $PUBLIC_JAVASCRIPTS/common/yobi.Mention.js $PUBLIC_JAVASCRIPTS/common/yobi.Markdown.js $PUBLIC_JAVASCRIPTS/common/yobi.Pagination.js $PUBLIC_JAVASCRIPTS/common/yobi.ShortcutKey.js $PUBLIC_JAVASCRIPTS/common/yobi.ui.Dropdown.js $PUBLIC_JAVASCRIPTS/common/yobi.ui.Typeahead.js $PUBLIC_JAVASCRIPTS/common/yobi.ui.Dialog.js $PUBLIC_JAVASCRIPTS/common/yobi.ui.Toast.js $PUBLIC_JAVASCRIPTS/common/yobi.ui.Tabs.js $PUBLIC_JAVASCRIPTS/common/yobi.OriginalMessage.js $PUBLIC_JAVASCRIPTS/service/yona.temprarySaveHandler.js > $OUT_DIR/yona-lib.js |
|
28 |
+# cat $PUBLIC_JAVASCRIPTS/common/yobi.Attachments.js $PUBLIC_JAVASCRIPTS/common/yobi.Files.js $PUBLIC_JAVASCRIPTS/common/yobi.Mention.js $PUBLIC_JAVASCRIPTS/common/yobi.Markdown.js $PUBLIC_JAVASCRIPTS/common/yobi.Pagination.js $PUBLIC_JAVASCRIPTS/common/yobi.ShortcutKey.js $PUBLIC_JAVASCRIPTS/common/yobi.ui.Dropdown.js $PUBLIC_JAVASCRIPTS/common/yobi.ui.Typeahead.js $PUBLIC_JAVASCRIPTS/common/yobi.ui.Dialog.js $PUBLIC_JAVASCRIPTS/common/yobi.ui.Toast.js $PUBLIC_JAVASCRIPTS/common/yobi.ui.Tabs.js $PUBLIC_JAVASCRIPTS/common/yobi.OriginalMessage.js $PUBLIC_JAVASCRIPTS/service/yona.temporarySaveHandler.js > $OUT_DIR/yona-lib.js |
--- public/javascripts/common/yobi.Comment.js
+++ public/javascripts/common/yobi.Comment.js
... | ... | @@ -50,7 +50,7 @@ |
50 | 50 |
|
51 | 51 |
setTimeout(function () { |
52 | 52 |
htElement.commentEditforms.each(function (i, item) { |
53 |
- temprarySaveHandler($(item).find('textarea'), false); |
|
53 |
+ temporarySaveHandler($(item).find('textarea'), false); |
|
54 | 54 |
}.bind(this)); |
55 | 55 |
}, 0); |
56 | 56 |
} |
--- public/javascripts/common/yobi.CommentForm.js
+++ public/javascripts/common/yobi.CommentForm.js
... | ... | @@ -35,7 +35,7 @@ |
35 | 35 |
elements.commentForm.submit(onSubmitCommentForm); |
36 | 36 |
$(window).on("keydown", onKeydownWindow); |
37 | 37 |
$(window).on("beforeunload", onBeforeUnloadWindow); |
38 |
- temprarySaveHandler(elements.textarea); |
|
38 |
+ temporarySaveHandler(elements.textarea); |
|
39 | 39 |
} |
40 | 40 |
|
41 | 41 |
/** |
--- public/javascripts/service/yobi.board.Write.js
+++ public/javascripts/service/yobi.board.Write.js
... | ... | @@ -52,7 +52,7 @@ |
52 | 52 |
function _attachEvent(){ |
53 | 53 |
htElement.welForm.submit(_onSubmitForm); |
54 | 54 |
|
55 |
- temprarySaveHandler(htElement.welTextarea); |
|
55 |
+ temporarySaveHandler(htElement.welTextarea); |
|
56 | 56 |
|
57 | 57 |
htElement.welTextarea.on("focus", function(){ |
58 | 58 |
$(window).on("beforeunload", _onBeforeUnload); |
--- public/javascripts/service/yobi.git.Write.js
+++ public/javascripts/service/yobi.git.Write.js
... | ... | @@ -72,7 +72,7 @@ |
72 | 72 |
$(this).next("pre.commitMsg.desc").toggleClass("hidden"); |
73 | 73 |
}); |
74 | 74 |
|
75 |
- temprarySaveHandler(elements.body); |
|
75 |
+ temporarySaveHandler(elements.body); |
|
76 | 76 |
|
77 | 77 |
if(elements.state === "OPEN") { |
78 | 78 |
_checkMergeResult(); |
--- public/javascripts/service/yobi.issue.Write.js
+++ public/javascripts/service/yobi.issue.Write.js
... | ... | @@ -68,7 +68,7 @@ |
68 | 68 |
} |
69 | 69 |
}); |
70 | 70 |
|
71 |
- temprarySaveHandler(htElement.welTextarea); |
|
71 |
+ temporarySaveHandler(htElement.welTextarea); |
|
72 | 72 |
|
73 | 73 |
htElement.welAssignee.on("change", function(weEvt){ |
74 | 74 |
htElement.welAssignee.select2("val", weEvt.val); |
--- public/javascripts/service/yobi.milestone.Write.js
+++ public/javascripts/service/yobi.milestone.Write.js
... | ... | @@ -49,7 +49,7 @@ |
49 | 49 |
* attach event handlers |
50 | 50 |
*/ |
51 | 51 |
function _attachEvent(){ |
52 |
- temprarySaveHandler(htElement.welInputContent); |
|
52 |
+ temporarySaveHandler(htElement.welInputContent); |
|
53 | 53 |
htElement.welForm.submit(_onSubmitForm); |
54 | 54 |
} |
55 | 55 |
|
--- public/javascripts/service/yona.temprarySaveHandler.js
+++ public/javascripts/service/yona.temporarySaveHandler.js
... | ... | @@ -5,8 +5,8 @@ |
5 | 5 |
* https://yona.io |
6 | 6 |
**/ |
7 | 7 |
|
8 |
-function temprarySaveHandler($textarea, contentInitialized) { |
|
9 |
- contentInitialized = contentInitialized !== false; // default : false |
|
8 |
+function temporarySaveHandler($textarea, contentInitialized) { |
|
9 |
+ contentInitialized = contentInitialized !== false; // default : true |
|
10 | 10 |
var noticePanel = $textarea.closest('div.write-comment-box').find(".editor-notice-label"); // 화면 어딘가 임시저장 상태 표시할 곳 |
11 | 11 |
var keydownTimer; |
12 | 12 |
|
--- public/javascripts/yona-lib.js
+++ public/javascripts/yona-lib.js
... | ... | @@ -42,5 +42,5 @@ |
42 | 42 |
a.waItems.removeClass("active");b.addClass("active")}function f(c){c=c.attr("data-value");var e=a.welContainer.attr("data-name");b.sName=e;b.sValue=c;if("undefined"!==typeof e){var f=a.welContainer.find("input[name='"+e+"']");0===f.length&&(f=$('<input type="hidden" name="'+e+'">'),a.welContainer.append(f));f.val(c)}}function h(){"function"==typeof b.fOnChange&&setTimeout(function(){b.fOnChange(e())},0)}function e(){return b.sValue}function c(b){b=a.welContainer.find(b);if(0>=b.length)return!1;b= |
43 | 43 |
$(b[0]);l(b);f(b);return!0}var b={sValue:""},a={};(function(d){a.welContainer=$(d.elContainer);a.welSelectedLabel=a.welContainer.find(".d-label");a.welList=a.welContainer.find(".dropdown-menu");a.waItems=a.welList.find("li");a.welList.on("click","li",q);a.welList.on("mousewheel",p);b.fOnChange=d.fOnChange;c("li[data-selected=true]")})(g);return{getValue:e,onChange:function(a){b.fOnChange=a;return!0},selectByValue:function(a){return c("li[data-value='"+a+"']")},selectItem:c}}})("yobi.ui.Dropdown");$(document).ready(function(){function g(g,f){var h;f=$("#"+g).find("li > a");(h=localStorage.getItem("yobitab-"+g))&&f[h]&&(h=$(f[h]))&&h.data(!1)&&h.tab("show")}var n,p,q;$(".nav-tabs[id]").each(function(l,f){p=$(f);q=p.attr("id");"undefined"!=typeof q&&(n=p.find("li"),n.click(function(){localStorage.setItem("yobitab-"+q,$(this).index())}),g(q,n))})});(function(g){g=$yobi.createNamespace(g);g.container[g.name]=function(g,p){function q(c){$(this).remove()}function l(c,b){c.bind("webkitTransitionEnd",function(){c.remove()});setTimeout(function(){c.css("opacity",0)},b)}var f,h,e;(function(c,b){b.sTplToast=b.sTplToast.replace("\n","");f=b.sTplToast||'<div class="toast" tabindex="-1"> <div class="btn-dismiss"><button type="button" class="btn-transparent">×</button></div> <div class="center-text msg"></div></div>';h=$(c); |
44 | 44 |
e=$(f)})(g,p||{});return{push:function(c,b){var a=e.clone(),d=a.find(".msg");a.css("opacity","0");a.click(q);d.html($yobi.nl2br(c));h.prepend(a);a.css("opacity","1");b&&0<b&&l(a,b)},clear:function(){h.empty()}}}})("yobi.ui.Toast");(function(g){g=$yobi.createNamespace(g);g.container[g.name]=function(g,p){function q(f,e){f.match(l.sLastQuery)&&l.bIsLastRangeEntire?e(l.htCachedUsers):(l.htData.query=f,$yobi.sendForm({sURL:l.sActionURL,htOptForm:{method:"get"},htData:l.htData,sDataType:"json",fOnLoad:function(c,b,a){b=a.getResponseHeader("Content-Range");console.log(c);b=(b=l.rxContentRange.exec(b||""))?!(parseInt(b[1],10)<parseInt(b[2],10)):!0;l.bIsLastRangeEntire=b;l.sLastQuery=f;l.htCachedUsers=c;e(c)}}))}var l={},f;(function(g, |
45 |
-e){l.sActionURL=e.sActionURL||"/users";l.rxContentRange=/items\s+([0-9]+)\/([0-9]+)/;l.htData=e.htData||{};try{f=$(g);f.typeahead({minLength:l.htData.minLength||0,items:10});var c=f.data("typeahead")||{};c.items=l.htData.limit||10;c.source=l.htData.source||q;"function"===typeof l.htData.updater&&(c.updater=l.htData.updater);"function"===typeof l.htData.render&&(c.render=l.htData.render);c.minLength=l.htData.minLength||0;f.typeahead(c)}catch(b){"object"==typeof console&&console.log(b)}})(g,p||{})}})("yobi.ui.Typeahead");function temprarySaveHandler(g,n){n=!1!==n;var p=g.closest("div.write-comment-box").find(".editor-notice-label"),q;g.on("keyup",function(){g.val()!==localStorage.getItem(location.pathname)&&(clearTimeout(q),""===g.val()?localStorage.removeItem(location.pathname):q=setTimeout(function(){localStorage.setItem(location.pathname,g.val());p.html('<span class="saved">Draft saved</span>');p.children().fadeOut(1E3)},5E3))});n&&localStorage.getItem(location.pathname)&&g.val(localStorage.getItem(location.pathname))} |
|
45 |
+e){l.sActionURL=e.sActionURL||"/users";l.rxContentRange=/items\s+([0-9]+)\/([0-9]+)/;l.htData=e.htData||{};try{f=$(g);f.typeahead({minLength:l.htData.minLength||0,items:10});var c=f.data("typeahead")||{};c.items=l.htData.limit||10;c.source=l.htData.source||q;"function"===typeof l.htData.updater&&(c.updater=l.htData.updater);"function"===typeof l.htData.render&&(c.render=l.htData.render);c.minLength=l.htData.minLength||0;f.typeahead(c)}catch(b){"object"==typeof console&&console.log(b)}})(g,p||{})}})("yobi.ui.Typeahead");function temporarySaveHandler(g,n){n=!1!==n;var p=g.closest("div.write-comment-box").find(".editor-notice-label"),q;g.on("keyup",function(){g.val()!==localStorage.getItem(location.pathname)&&(clearTimeout(q),""===g.val()?localStorage.removeItem(location.pathname):q=setTimeout(function(){localStorage.setItem(location.pathname,g.val());p.html('<span class="saved">Draft saved</span>');p.children().fadeOut(1E3)},5E3))});n&&localStorage.getItem(location.pathname)&&g.val(localStorage.getItem(location.pathname))} |
|
46 | 46 |
function removeCurrentPageTemprarySavedContent(){localStorage.removeItem(location.pathname)}; |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?