mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 00:25:06 +02:00
Merge remote-tracking branch 'dragonier/gridster.js/master'
* dragonier/gridster.js/master: add_resize_handle: multiple span (resizeable) entries in widgets
This commit is contained in:
Vendored
+5
-2
@@ -1363,8 +1363,11 @@
|
||||
* @return {HTMLElement} Returns instance of gridster Class.
|
||||
*/
|
||||
fn.add_resize_handle = function($w) {
|
||||
var append_to = this.options.resize.handle_append_to;
|
||||
$(this.resize_handle_tpl).appendTo( append_to ? $(append_to, $w) : $w);
|
||||
var $append_to = this.options.resize.handle_append_to ? $(this.options.resize.handle_append_to, $w) : $w;
|
||||
|
||||
if ( ($append_to.children("span[class~='" + this.resize_handle_class + "']")).length == 0 ) {
|
||||
$(this.resize_handle_tpl).appendTo( $append_to );
|
||||
}
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+5
-2
@@ -1363,8 +1363,11 @@
|
||||
* @return {HTMLElement} Returns instance of gridster Class.
|
||||
*/
|
||||
fn.add_resize_handle = function($w) {
|
||||
var append_to = this.options.resize.handle_append_to;
|
||||
$(this.resize_handle_tpl).appendTo( append_to ? $(append_to, $w) : $w);
|
||||
var $append_to = this.options.resize.handle_append_to ? $(this.options.resize.handle_append_to, $w) : $w;
|
||||
|
||||
if ( ($append_to.children("span[class~='" + this.resize_handle_class + "']")).length == 0 ) {
|
||||
$(this.resize_handle_tpl).appendTo( $append_to );
|
||||
}
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -486,8 +486,11 @@
|
||||
* @return {HTMLElement} Returns instance of gridster Class.
|
||||
*/
|
||||
fn.add_resize_handle = function($w) {
|
||||
var append_to = this.options.resize.handle_append_to;
|
||||
$(this.resize_handle_tpl).appendTo( append_to ? $(append_to, $w) : $w);
|
||||
var $append_to = this.options.resize.handle_append_to ? $(this.options.resize.handle_append_to, $w) : $w;
|
||||
|
||||
if ( ($append_to.children("span[class~='" + this.resize_handle_class + "']")).length == 0 ) {
|
||||
$(this.resize_handle_tpl).appendTo( $append_to );
|
||||
}
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user