1
0
Fork 0
forked from 0x2620/oxjs

dont show Run tests is showTests is false, fix documentation example

This commit is contained in:
j 2012-06-16 14:25:08 +02:00
commit 099fbc7880
3 changed files with 32 additions and 29 deletions

View file

@ -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'})