mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Possibility to namespace first-time styles generated by gridster.
Useful if you have multiple grid instances in the same document.
This commit is contained in:
@ -8,6 +8,7 @@
|
||||
;(function($, window, document, undefined) {
|
||||
|
||||
var defaults = {
|
||||
namespace: '',
|
||||
widget_selector: '> li',
|
||||
widget_margins: [10, 10],
|
||||
widget_base_dimensions: [400, 225],
|
||||
@ -2365,7 +2366,7 @@
|
||||
this.rows = max_rows;
|
||||
|
||||
if (this.options.autogenerate_stylesheet) {
|
||||
this.generate_stylesheet();
|
||||
this.generate_stylesheet({namespace: this.options.namespace});
|
||||
}
|
||||
|
||||
return this;
|
||||
|
Reference in New Issue
Block a user