Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resize handles #6

Merged
merged 1 commit into from
Apr 14, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/jquery.gridster.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! gridster.js - v0.6.5 - 2015-04-06
/*! gridster.js - v0.6.5 - 2015-04-14
* http://gridster.net/
* Copyright (c) 2015 decksterteam; Licensed */

Expand Down
7 changes: 4 additions & 3 deletions dist/jquery.gridster.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! gridster.js - v0.6.5 - 2015-04-06
/*! gridster.js - v0.6.5 - 2015-04-14
* http://gridster.net/
* Copyright (c) 2015 decksterteam; Licensed */

Expand Down Expand Up @@ -1295,7 +1295,7 @@
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);

$w.data('resizeEquipped', true);
return this;
};

Expand Down Expand Up @@ -1948,7 +1948,8 @@

this.add_to_gridmap(wgd, $el);

this.options.resize.enabled && this.add_resize_handle($el);
if(this.options.resize.enabled && !$el.data('resizeEquipped'))
this.add_resize_handle($el);

return posChanged;
};
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.gridster.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions dist/jquery.gridster.min.js

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions dist/jquery.gridster.with-extras.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! gridster.js - v0.6.5 - 2015-04-06
/*! gridster.js - v0.6.5 - 2015-04-14
* http://gridster.net/
* Copyright (c) 2015 decksterteam; Licensed */

Expand Down Expand Up @@ -1295,7 +1295,7 @@
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);

$w.data('resizeEquipped', true);
return this;
};

Expand Down Expand Up @@ -1948,7 +1948,8 @@

this.add_to_gridmap(wgd, $el);

this.options.resize.enabled && this.add_resize_handle($el);
if(this.options.resize.enabled && !$el.data('resizeEquipped'))
this.add_resize_handle($el);

return posChanged;
};
Expand Down
5 changes: 3 additions & 2 deletions dist/jquery.gridster.with-extras.min.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions src/jquery.gridster.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@
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);

$w.data('resizeEquipped', true);
return this;
};

Expand Down Expand Up @@ -1101,7 +1101,8 @@

this.add_to_gridmap(wgd, $el);

this.options.resize.enabled && this.add_resize_handle($el);
if(this.options.resize.enabled && !$el.data('resizeEquipped'))
this.add_resize_handle($el);

return posChanged;
};
Expand Down