mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
attempt to move onClick away from HTML.. This is required
This commit is contained in:
parent
7eecfa17b7
commit
5c54b2c681
2 changed files with 5 additions and 1 deletions
|
@ -384,6 +384,10 @@ function handshake()
|
||||||
});
|
});
|
||||||
// Bind the colorpicker
|
// Bind the colorpicker
|
||||||
var fb = $('#colorpicker').farbtastic({ callback: '#mycolorpickerpreview', width: 220});
|
var fb = $('#colorpicker').farbtastic({ callback: '#mycolorpickerpreview', width: 220});
|
||||||
|
// Bind the read only button
|
||||||
|
$('#readonlyinput').on('click',function(){
|
||||||
|
padeditbar.setEmbedLinks();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
var pad = {
|
var pad = {
|
||||||
|
|
|
@ -283,7 +283,7 @@
|
||||||
<div id="embed" class="popup">
|
<div id="embed" class="popup">
|
||||||
<% e.begin_block("embedPopup"); %>
|
<% e.begin_block("embedPopup"); %>
|
||||||
<div id="embedreadonly" class="right acl-write">
|
<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>
|
<label for="readonlyinput">Read only</label>
|
||||||
</div>
|
</div>
|
||||||
<h1>Share this pad</h1>
|
<h1>Share this pad</h1>
|
||||||
|
|
Loading…
Reference in a new issue