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:
David Morse
2015-04-07 22:30:38 -06:00
5 changed files with 17 additions and 8 deletions
+5 -2
View File
@@ -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
View File
File diff suppressed because one or more lines are too long
+5 -2
View File
@@ -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;
};
File diff suppressed because one or more lines are too long
+5 -2
View File
@@ -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;
};