Skip to content

Commit

Permalink
- fixed caret bug for link to page button
Browse files Browse the repository at this point in the history
  • Loading branch information
Niels van Dijk committed Apr 28, 2011
1 parent 6a67fac commit a3d28df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fiber/static/fiber/js/fiber.markitup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit a3d28df

Please sign in to comment.