diff --git a/source/Ox.UI/js/Calendar/Ox.Calendar.js b/source/Ox.UI/js/Calendar/Ox.Calendar.js index effd4f45..ee2efd16 100644 --- a/source/Ox.UI/js/Calendar/Ox.Calendar.js +++ b/source/Ox.UI/js/Calendar/Ox.Calendar.js @@ -1015,7 +1015,7 @@ Ox.Calendar = function(options, self) { if (!Ox.isUndefined(line)) { scrollTo(line * 16 + 8 - self.$container.height() / 2, true); } - }; + } function panToSelected() { // fixme: '0' should zoom to selected if selected is already centered diff --git a/source/Ox.UI/js/Calendar/Ox.ListCalendar.js b/source/Ox.UI/js/Calendar/Ox.ListCalendar.js index c1cd6ad0..a3ec362d 100644 --- a/source/Ox.UI/js/Calendar/Ox.ListCalendar.js +++ b/source/Ox.UI/js/Calendar/Ox.ListCalendar.js @@ -1,9 +1,11 @@ 'use strict'; /*@ -Ox.ListCalendar ListCalendar object +Ox.ListCalendar List Calendar + (options[, self]) -> List Calendar + options Options + self Shared private variable @*/ - // FIXME: should be Ox.CalendarEditor Ox.ListCalendar = function(options, self) { diff --git a/source/Ox.UI/js/Core/Ox.Event.js b/source/Ox.UI/js/Core/Ox.Event.js index 5a33bf34..30ecf08c 100644 --- a/source/Ox.UI/js/Core/Ox.Event.js +++ b/source/Ox.UI/js/Core/Ox.Event.js @@ -4,6 +4,7 @@ Ox.Event Basic event handler @*/ + Ox.Event = (function() { var self = {}, that = {}; @@ -92,4 +93,4 @@ Ox.Event = (function() { return that; -}()); \ No newline at end of file +}()); diff --git a/source/Ox.UI/js/Core/Ox.JQueryElement.js b/source/Ox.UI/js/Core/Ox.JQueryElement.js index 1a737d3b..c58b8751 100644 --- a/source/Ox.UI/js/Core/Ox.JQueryElement.js +++ b/source/Ox.UI/js/Core/Ox.JQueryElement.js @@ -2,9 +2,7 @@ /*@ Ox.JQueryElement Wrapper for jQuery - # Usage ($element) -> Wrapped jQuery DOM element - # Arguments $element jQuery DOM Element @*/ diff --git a/source/Ox.UI/js/Core/Ox.Progressbar.js b/source/Ox.UI/js/Core/Ox.Progressbar.js deleted file mode 100644 index 488e9b37..00000000 --- a/source/Ox.UI/js/Core/Ox.Progressbar.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; -/** -Ox.Progressbar -*/ -// FIXME: remove this! diff --git a/source/Ox.UI/js/Form/Ox.ArrayEditable.js b/source/Ox.UI/js/Form/Ox.ArrayEditable.js index 6b35afdb..88225802 100644 --- a/source/Ox.UI/js/Form/Ox.ArrayEditable.js +++ b/source/Ox.UI/js/Form/Ox.ArrayEditable.js @@ -1,7 +1,10 @@ 'use strict'; /*@ -Ox.ArrayEditable Array Editable Object +Ox.ArrayEditable Array Editable + (options, self) -> Array Editable + options Options object + self Shared private variable @*/ Ox.ArrayEditable = function(options, self) { diff --git a/source/Ox.UI/js/Form/Ox.ArrayInput.js b/source/Ox.UI/js/Form/Ox.ArrayInput.js index 08ab1fbf..1a9ef0cc 100644 --- a/source/Ox.UI/js/Form/Ox.ArrayInput.js +++ b/source/Ox.UI/js/Form/Ox.ArrayInput.js @@ -1,7 +1,15 @@ 'use strict'; /*@ -Ox.ArrayInput Array input +Ox.ArrayInput Array input + (options, self) -> Array input + options Options object + label string, '' + max integer, maximum number of items, 0 for all + sort fixme: this should probably be removed + value <[]> value + width width + self Shared private variable @*/ Ox.ArrayInput = function(options, self) { diff --git a/source/Ox.UI/js/Form/Ox.Filter.js b/source/Ox.UI/js/Form/Ox.Filter.js index fcf14f37..dd8e3dad 100644 --- a/source/Ox.UI/js/Form/Ox.Filter.js +++ b/source/Ox.UI/js/Form/Ox.Filter.js @@ -45,7 +45,7 @@ Ox.Filter = function(options, self) { } else if (self.options.query.operator == '') { self.options.query.operator = '&'; } - Ox.Log('Form', 'Ox.Filter self.options', self.options) + Ox.Log('Form', 'Ox.Filter self.options', self.options); self.conditionOperators = { boolean: [ diff --git a/source/Ox.UI/js/Form/Ox.InputGroup.js b/source/Ox.UI/js/Form/Ox.InputGroup.js index 6488b2ee..59df8c79 100644 --- a/source/Ox.UI/js/Form/Ox.InputGroup.js +++ b/source/Ox.UI/js/Form/Ox.InputGroup.js @@ -143,7 +143,7 @@ Ox.InputGroup = function(options, self) { if (key == 'value') { setValue(); } - } + }; // fixme: is this used? that.getInputById = function(id) { diff --git a/source/Ox.UI/js/List/Ox.TextList.js b/source/Ox.UI/js/List/Ox.TextList.js index a00301a3..087ba742 100644 --- a/source/Ox.UI/js/List/Ox.TextList.js +++ b/source/Ox.UI/js/List/Ox.TextList.js @@ -308,7 +308,7 @@ Ox.TextList = function(options, self) { (self.options.sort[0].operator == '+' ? '-' : '+') : self.options.columns[i].operator, map: self.options.columns[i].map - }] + }]; updateColumn(); // fixme: strangely, sorting the list blocks updating the column, // so we use a timeout for now @@ -322,6 +322,7 @@ Ox.TextList = function(options, self) { } function constructHead() { + var pos; self.$heads = []; self.$titles = []; self.$orderButtons = []; @@ -354,7 +355,7 @@ Ox.TextList = function(options, self) { dragend: function(data) { dragendColumn(column.id, data); } - }) + }); } self.$titles[i] = Ox.Element() .addClass('OxTitle') @@ -368,7 +369,7 @@ Ox.TextList = function(options, self) { $('').attr({ src: Ox.UI.getImageURL('symbol' + Ox.toTitleCase(column.titleImage)) }) - ) + ); } else { self.$titles[i].html(column.title); } @@ -413,9 +414,10 @@ Ox.TextList = function(options, self) { that.$head.$content.css({ width: (Ox.sum(self.columnWidths) + 2) + 'px' }); - if (getColumnPositionById(self.options.columns[self.selectedColumn].id) > -1) { // fixme: save in var + pos = getColumnPositionById(self.options.columns[self.selectedColumn].id); + if (pos > -1) { toggleSelected(self.options.columns[self.selectedColumn].id); - self.$titles[getColumnPositionById(self.options.columns[self.selectedColumn].id)].css({ + self.$titles[pos].css({ width: (self.options.columns[self.selectedColumn].width - 25) + 'px' }); } @@ -878,7 +880,8 @@ Ox.TextList = function(options, self) { submit: submit }) .appendTo($cell); - // fixme: why do we need a timeout? + // use timeout to prevent key to be inserted + // into $input if triggered via keyboard shortcut setTimeout(function() { $input.focusInput(select); }, 0); @@ -897,7 +900,7 @@ Ox.TextList = function(options, self) { value: value }); } - } + }; /*@ gainFocus gainFocus @@ -955,7 +958,7 @@ Ox.TextList = function(options, self) { that.resizeColumn = function(id, width) { resizeColumn(id, width); return that; - } + }; /*@ size size @@ -963,7 +966,7 @@ Ox.TextList = function(options, self) { that.size = function() { setWidth(); that.$body.size(); - } + }; // fixme: deprecated that.sortList = function(key, operator) { @@ -1031,7 +1034,7 @@ Ox.TextList = function(options, self) { } return that; } - } + }; return that; diff --git a/source/Ox.UI/js/Video/Ox.AnnotationPanel.js b/source/Ox.UI/js/Video/Ox.AnnotationPanel.js index 3f208e9e..e4a5561a 100644 --- a/source/Ox.UI/js/Video/Ox.AnnotationPanel.js +++ b/source/Ox.UI/js/Video/Ox.AnnotationPanel.js @@ -2,6 +2,27 @@ /*@ Ox.AnnotationPanel Video Annotation Panel + () -> AnnotationPanel Object + (options) -> AnnotationPanel Object + (options, self) -> AnnotationPanel Object + options Options object + calendarSize calendar size + clickLink click link callback + editable: if true, annotations can be edited + font small, medium, large + highlight highlight given string in annotations + layers array with annotation objects + mapSize map size + range all, position, selection + selected selected annotation + showCalendar if true, calendar is shown + showFonts if true, option to select font size is show + showLayers object with layers to show + showMap if true, show map + showUsers if true show user + sort position, start, text + width panel width + self shared private variable @*/ Ox.AnnotationPanel = function(options, self) {