forked from 0x2620/oxjs
dont show Run tests is showTests is false, fix documentation example
This commit is contained in:
parent
9d391e4c13
commit
099fbc7880
3 changed files with 32 additions and 29 deletions
|
|
@ -74,7 +74,9 @@ Ox.DocPanel = function(options, self) {
|
|||
self.$testsStatus = $('<div>')
|
||||
.css({marginTop: '5px', textAlign: 'center'})
|
||||
.appendTo(self.$toolbar);
|
||||
if (!self.options.results) {
|
||||
if (!self.options.showTests) {
|
||||
self.$testsStatus.hide();
|
||||
} else if (!self.options.results) {
|
||||
self.options.results = {};
|
||||
self.$testsButton = Ox.Button({title: 'Run Tests'})
|
||||
.css({margin: '4px auto'})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue