attempt to move onClick away from HTML.. This is required

This commit is contained in:
johnyma22 2012-10-04 21:16:58 +01:00
parent 7eecfa17b7
commit 5c54b2c681
2 changed files with 5 additions and 1 deletions

View File

@ -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 = {

View File

@ -283,7 +283,7 @@
<div id="embed" class="popup">
<% e.begin_block("embedPopup"); %>
<div id="embedreadonly" class="right acl-write">
<input type="checkbox" id="readonlyinput" onClick="padeditbar.setEmbedLinks();">
<input type="checkbox" id="readonlyinput">
<label for="readonlyinput">Read only</label>
</div>
<h1>Share this pad</h1>