• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得cocoawindowspythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdombtronvb.netdirectxarduinopreviewerゲームエンジン

allura


Commit MetaInfo

修訂efa3d6260681f9d370a9c65f8d78a06beeb88518 (tree)
時間2012-04-04 17:11:28
作者Yaroslav Luzin <jardev@gmai...>
CommiterYaroslav Luzin

Log Message

Merge branch 't35_custom_css_values' into 42cc

Change Summary

差異

--- a/Allura/allura/lib/widgets/resources/js/jqfontselector.js
+++ b/Allura/allura/lib/widgets/resources/js/jqfontselector.js
@@ -64,6 +64,18 @@ jQuery.fn.fontSelector = function() {
6464 });
6565 });
6666
67+ var cust_input = $('<input type="text" name="custom_font">').attr('value', $(sel).val()).bind('keydown', function (event) {
68+ if (event.keyCode === 13) {
69+ $(sel).val($(this).val());
70+ $(ul).hide();
71+ }
72+ if (event.keyCode === 27) {
73+ $(ul).hide();
74+ }
75+ });
76+ var li = $('<li>');
77+ li.append(cust_input);
78+ $(ul).append(li);
6779 });
6880
69-}
\ No newline at end of file
81+}