Skip to content

Commit

Permalink
Moves button. Comments out old section, not sure what that space was for
Browse files Browse the repository at this point in the history
  • Loading branch information
bio-boris committed Oct 7, 2020
1 parent 2a619e8 commit 46059f3
Showing 1 changed file with 27 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,32 @@ define([
var events = Events.make({ node: container }),
buttons = [
div({ class: 'buttons pull-right' }, [
span({ class: 'kb-func-timestamp' }),
renderOptions(cell, events),
(function() {
var toggleMinMax = utils.getCellMeta(cell, 'kbase.cellState.toggleMinMax', 'maximized'),
toggleIcon = (toggleMinMax === 'maximized' ? 'minus' : 'plus'),
color = (toggleMinMax === 'maximized' ? '#000' : 'rgba(255,137,0,1)');
return button({
type: 'button',
class: 'btn btn-default btn-xs',
dataToggle: 'tooltip',
dataPlacement: 'left',
title: true,
dataOriginalTitle: toggleMinMax === 'maximized' ? 'Collapse Cell' : 'Expand Cell',
id: events.addEvent({ type: 'click', handler: doToggleMinMaxCell })
}, [
span({
class: 'fa fa-' + toggleIcon + '-square-o fa-lg',
style: {
color: color
}
})
]);
}()),



// span({ class: 'kb-func-timestamp' }),
span({ class: 'fa fa-circle-o-notch fa-spin', style: { color: 'rgb(42, 121, 191)', display: 'none' } }),
span({ class: 'fa fa-exclamation-triangle', style: { color: 'rgb(255, 0, 0)', display: 'none' } }),
(readOnly ? null : button({
Expand All @@ -393,28 +418,7 @@ define([
}, [
span({ class: 'fa fa-arrow-down fa-lg' })
])),
renderOptions(cell, events),
(function() {
var toggleMinMax = utils.getCellMeta(cell, 'kbase.cellState.toggleMinMax', 'maximized'),
toggleIcon = (toggleMinMax === 'maximized' ? 'minus' : 'plus'),
color = (toggleMinMax === 'maximized' ? '#000' : 'rgba(255,137,0,1)');
return button({
type: 'button',
class: 'btn btn-default btn-xs',
dataToggle: 'tooltip',
dataPlacement: 'left',
title: true,
dataOriginalTitle: toggleMinMax === 'maximized' ? 'Collapse Cell' : 'Expand Cell',
id: events.addEvent({ type: 'click', handler: doToggleMinMaxCell })
}, [
span({
class: 'fa fa-' + toggleIcon + '-square-o fa-lg',
style: {
color: color
}
})
]);
}())

])
],
message = div({
Expand Down

0 comments on commit 46059f3

Please sign in to comment.