Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BK-415 Chapter Name -> it is not possible to select the default name …

…with a mouse (similar to Ctrl+A action)
  • Loading branch information...
commit 2ea6fbf20496cd58dd076179da35de76591a0928 1 parent 64097b5
@aerkalov aerkalov authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/booki/site_static/js/editor.js
6 lib/booki/site_static/js/editor.js
@@ -897,7 +897,11 @@ $(function() {
// Make it look nicer and look on the width of input box
// also use white-space: nowrap
- $("FORM", $this).append($('<input type="text" style="width: 70%">').attr("value", s));
+ var e = $('<input type="text" style="width: 70%">').attr("value", s);
+ // bug with field selection in firefox
+ e.mousedown(function(e){ e.stopPropagation(); });
+ $("FORM", $this).append(e);
$("INPUT", $this).focus();
function _doRename() {
Please sign in to comment.
Something went wrong with that request. Please try again.