mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
documentation typos
This commit is contained in:
@ -324,7 +324,7 @@
|
||||
/**
|
||||
* Creates the grid coords object representing the widget a add it to the mapped array of positions
|
||||
*
|
||||
* @method serialize_changed
|
||||
* @method register_widget
|
||||
* @return {Array} Returns the instance of the Gridster class.
|
||||
*/
|
||||
fn.register_widget = function($el) {
|
||||
@ -849,22 +849,15 @@
|
||||
};
|
||||
|
||||
|
||||
fn.is_placeholder_in_col = function(col, row) {
|
||||
return $.inArray(col, this.cells_occupied_by_placeholder.cols) >= 0;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Determines if the placeholder is currently over the row and col given.
|
||||
* Determines if the placeholder is currently over the column given.
|
||||
*
|
||||
* @method is_placeholder_in
|
||||
* @method is_placeholder_in_col
|
||||
* @param {Number} col The column to check.
|
||||
* @param {Number} row The row to check.
|
||||
* @return {Boolean} Returns true or false.
|
||||
*/
|
||||
fn.is_placeholder_in = function(col, row) {
|
||||
var c = this.cells_occupied_by_placeholder || [];
|
||||
return $.inArray(col, c.cols) >= 0 && $.inArray(row, c.rows) >= 0;
|
||||
fn.is_placeholder_in_col = function(col) {
|
||||
return $.inArray(col, this.cells_occupied_by_placeholder.cols) >= 0;
|
||||
};
|
||||
|
||||
|
||||
@ -1692,7 +1685,7 @@
|
||||
* Iterate over the cells occupied by a widget executing a function for
|
||||
* each one.
|
||||
*
|
||||
* @method for_each_column_occupied
|
||||
* @method for_each_cell_occupied
|
||||
* @param {Object} el_grid_data The grid coords object that represents the
|
||||
* widget.
|
||||
* @param {Function} callback The function to execute on each column
|
||||
@ -1918,7 +1911,7 @@
|
||||
/**
|
||||
* Injects the given CSS as string to the head of the document.
|
||||
*
|
||||
* @method generate_stylesheet
|
||||
* @method add_style_tag
|
||||
* @param {String} css The styles to apply.
|
||||
* @return {Object} Returns the instance of the Gridster class.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user