Skip to content
This repository has been archived by the owner on Apr 3, 2022. It is now read-only.

Commit

Permalink
Change append order
Browse files Browse the repository at this point in the history
  • Loading branch information
pkrp committed Feb 25, 2016
1 parent b911888 commit ce15840
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/CytoscapeActionbar.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@
$element = $("<span id='action-#{itemIndex}' class='#{clazz}' title='#{element.tooltip}'></span>")

if element.condition
$condition = $(element.condition)
$actionbar.append($condition)
$($actionbar[0].lastChild).append($element)
else
$actionbar.append($element)
$condition = $(element.condition);
$element = $condition.append($element);

$actionbar.append($element)

$element
.on('click', ->
Expand Down

0 comments on commit ce15840

Please sign in to comment.