Permalink
Browse files

MDL-34742 - adding ability to move blocks into empty column

  • Loading branch information...
matthewdaniel authored and FMCorz committed Aug 5, 2012
1 parent c92d6f4 commit dbc623c4fc5420dd8a3617d17342bb96eeec766a
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/blocklib.php
View
@@ -457,6 +457,12 @@ public function region_completely_docked($region, $output) {
if (!$this->page->theme->enable_dock) {
return false;
}
+
+ // Do not dock the region when the user attemps to move a block.
+ if ($this->movingblock) {
+ return false;
+ }
+
$this->check_is_loaded();
$this->ensure_content_created($region, $output);
foreach($this->visibleblockcontent[$region] as $instance) {

0 comments on commit dbc623c

Please sign in to comment.