From 16a618657001cc9ecc7b5c7c3b4c3b794f1c3c42 Mon Sep 17 00:00:00 2001 From: bootstraponline Date: Thu, 17 May 2012 16:00:09 -0600 Subject: [PATCH] Add icon for save with comment in live preview. --- .../gollum/livepreview/images/savecomment_24.png | Bin 0 -> 278 bytes .../frontend/public/gollum/livepreview/index.html | 9 +++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 lib/gollum/frontend/public/gollum/livepreview/images/savecomment_24.png diff --git a/lib/gollum/frontend/public/gollum/livepreview/images/savecomment_24.png b/lib/gollum/frontend/public/gollum/livepreview/images/savecomment_24.png new file mode 100644 index 0000000000000000000000000000000000000000..38d7d41aa073becfef62ba6727f06c2b4ab5243b GIT binary patch literal 278 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaM1|%Pp+x`Gjk|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*D5Xc6hothE&{2TC-|Z(uVEZzo#c8%wRae#dC#`zhTFN2M3#_ zCClI4;WVmYX3lkB5Wezs3zP7S6%sl(8ko4n9L2eK?>3)FR9w;!bl`|XvVoM#Vn-7x zmkA104u=J*7&a|vXcH4LXw+g2*y)=(zu^oQ!%W^j<`t^aiJJ~cy|Wkd6>qq~xZ<0# z?j+5~HsS1pY(>1sr}|7h$fV%c!Y1wK>TvqxC&oJkP7EoQdh7;?!9HCNBfczRXkcJw YSjTCZ?#5Gp3+M+1Pgg&ebxsLQ01e4t7ytkO literal 0 HcmV?d00001 diff --git a/lib/gollum/frontend/public/gollum/livepreview/index.html b/lib/gollum/frontend/public/gollum/livepreview/index.html index 36564644..916d823a 100644 --- a/lib/gollum/frontend/public/gollum/livepreview/index.html +++ b/lib/gollum/frontend/public/gollum/livepreview/index.html @@ -19,9 +19,10 @@
- +
- save + Save + Save with comment Toggle left to right
@@ -106,6 +107,10 @@ window.onload = function() { $.save(); }); + $('#savecomment').click(function() { + $.save(); + }); + // onChange calls applyTimeout which rate limits the calling of makePreviewHtml based on render time. editor.on('change', applyTimeout); makePreviewHtml(); // preview default text on load