Skip to content

Commit

Permalink
Remove duplicated code, linksInSelection is set later again
Browse files Browse the repository at this point in the history
  • Loading branch information
Friedrich W. H. Kossebau committed Sep 24, 2014
1 parent 1a07b93 commit 8456e45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ See also section about WebODF

### Fixes

* Fix wrongly enabled hyperlink tools with no document loaded ([#755](https://github.com/kogmbh/WebODF/pull/833))
* Fix wrongly enabled hyperlink tools with no document loaded ([#833](https://github.com/kogmbh/WebODF/pull/833))


# Changes between 0.5.3 and 0.5.4
Expand Down
2 changes: 1 addition & 1 deletion programs/editor/widgets/editHyperlinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ define("webodf/editor/widgets/editHyperlinks", [

function updateHyperlinkButtons() {
var controllerEnabled = hyperlinkController && hyperlinkController.isEnabled(),
linksInSelection = controllerEnabled && editorSession.getSelectedHyperlinks();
linksInSelection;

// Enable to disable all widgets initially
widget.children.forEach(function (element) {
Expand Down

0 comments on commit 8456e45

Please sign in to comment.