Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b00114d

Browse files
committed
fix handle option
1 parent 847a54c commit b00114d

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

dist/gridstack.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@
411411
handles: 'se'
412412
}),
413413
draggable: _.defaults(opts.draggable || {}, {
414-
handle: opts.handle_class || (opts.handle ? '.' + opts.handle : '') || '.grid-stack-item-content',
414+
handle: (opts.handle_class ? '.' + opts.handle_class : (opts.handle ? opts.handle : '')) || '.grid-stack-item-content',
415415
scroll: false,
416416
appendTo: 'body'
417417
})
@@ -517,7 +517,7 @@
517517
$(window).resize(this.on_resize_handler);
518518
this.on_resize_handler();
519519
};
520-
520+
521521
GridStack.prototype._trigger_change_event = function(forceTrigger) {
522522
var elements = this.grid.get_dirty_nodes();
523523
var hasChanges = false;
@@ -761,7 +761,7 @@
761761
this.container.remove();
762762
Utils.remove_stylesheet(this._styles_id);
763763
if (this.grid)
764-
this.grid = null;
764+
this.grid = null;
765765
};
766766

767767
GridStack.prototype.resizable = function(el, val) {
@@ -959,7 +959,7 @@
959959

960960
GridStack.prototype._set_static_class = function() {
961961
var static_class_name = 'grid-stack-static';
962-
962+
963963
if (this.opts.static_grid === true) {
964964
this.container.addClass(static_class_name);
965965
} else {

dist/gridstack.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)