Commit 5cd7e54deb4ceefc9c788ea131ee320414bd31d3
1 parent
4c1ac095
Exists in
master
and in
29 other branches
container_block: fixed resize of children
Showing
2 changed files
with
1 additions
and
5 deletions
Show diff stats
plugins/container_block/public/container_block.js
| 1 | 1 | function enableMoveContainerChildren(container, box) { |
| 2 | 2 | var div = jQuery('#box-'+box+' > .block-outer > .block'); |
| 3 | 3 | if(!div.is('.ui-resizable')) { |
| 4 | - div.find("a").live("click", function(e) { | |
| 5 | - e.preventDefault(); | |
| 6 | - }); | |
| 7 | 4 | div.resizable({ |
| 8 | 5 | handles: 'e, w', |
| 9 | 6 | containment: '#block-'+container+' .block-inner-2', |
| ... | ... | @@ -17,7 +14,6 @@ function enableMoveContainerChildren(container, box) { |
| 17 | 14 | function disableMoveContainerChildren(container, box) { |
| 18 | 15 | var div = jQuery('#box-'+box+' > .block-outer > .block'); |
| 19 | 16 | if(div.is('.ui-resizable')) { |
| 20 | - div.find("a").die("click"); | |
| 21 | 17 | div.resizable('destroy'); |
| 22 | 18 | } |
| 23 | 19 | } | ... | ... |