Skip to content

Commit

Permalink
Merge pull request #6 from DecksterTeam/dadams
Browse files Browse the repository at this point in the history
Resize handles
  • Loading branch information
fhawkes committed Apr 14, 2015
2 parents 12f4ab1 + 6c5ef28 commit 0286676
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 14 deletions.
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

0 comments on commit 0286676

Please sign in to comment.