Permalink
Browse files

- fixed caret bug for link to page button

  • Loading branch information...
Niels van Dijk
Niels van Dijk committed Apr 28, 2011
1 parent 6a67fac commit a3d28dfe80191f9fbf5fa94bbf9bbab7a0e26aa2
Showing with 2 additions and 2 deletions.
  1. +2 −2 fiber/static/fiber/js/fiber.markitup.js
@@ -6,8 +6,8 @@ Fiber.enhance_textarea = function(textarea) {
var header = $textarea.parent('.markItUpContainer').find('.markItUpHeader');
header.find('li.select_page a').click(function() {
- // Restore textarea selection.
- $textarea.caret(caret);
+ // Save selection in textarea. This is necessary for ie.
+ var caret = $textarea.caret();
var page_select_dialog = new Fiber.PageSelectDialog();
page_select_dialog.action_click = function() {

0 comments on commit a3d28df

Please sign in to comment.