From 5c54b2c681d1e8efff94855838ebc8a42dce1726 Mon Sep 17 00:00:00 2001 From: johnyma22 Date: Thu, 4 Oct 2012 21:16:58 +0100 Subject: [PATCH] attempt to move onClick away from HTML.. This is required --- src/static/js/pad.js | 4 ++++ src/templates/pad.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/static/js/pad.js b/src/static/js/pad.js index 737f5dc62..ca7e06273 100644 --- a/src/static/js/pad.js +++ b/src/static/js/pad.js @@ -384,6 +384,10 @@ function handshake() }); // Bind the colorpicker var fb = $('#colorpicker').farbtastic({ callback: '#mycolorpickerpreview', width: 220}); + // Bind the read only button + $('#readonlyinput').on('click',function(){ + padeditbar.setEmbedLinks(); + }); } var pad = { diff --git a/src/templates/pad.html b/src/templates/pad.html index 425e476d8..a8372f047 100644 --- a/src/templates/pad.html +++ b/src/templates/pad.html @@ -283,7 +283,7 @@