Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed: group top row missing

  • Loading branch information...
commit 5071cd75d2fd7e5395d224962194d064b3dfbb5a 1 parent 990a4a9
@jdalsem jdalsem authored
View
2  README.txt
@@ -67,8 +67,8 @@ A user can always add his or hers own widgets. They will always be added below t
== General ==
- check available widget and saving of widget manage page on a clean install
- - test migrating from 1.7 to 1.8
- test different browser (only FF 8 tested)
+ - split css site/admin
== Multi Dashboard ==
View
13 views/default/page/layouts/widgets.php
@@ -104,6 +104,19 @@
echo $vars['content'];
}
+ if($context == "groups"){
+ echo "<div class=\"elgg-col-1of1 elgg-widgets widget-manager-groups-widgets-top-row\" id=\"elgg-widget-col-3\">";
+
+ if (sizeof($widgets[3]) > 0) {
+ foreach ($widgets[3] as $widget) {
+ if (array_key_exists($widget->handler, $widget_types)) {
+ echo elgg_view_entity($widget, array('show_access' => $show_access));
+ }
+ }
+ }
+ echo '</div>';
+ }
+
$widget_class = "elgg-col-1of{$num_columns}";
for ($column_index = 1; $column_index <= $num_columns; $column_index++) {
if (isset($widgets[$column_index])) {
View
9 views/default/widget_manager/css/global.php
@@ -111,4 +111,13 @@
}
#widget-manager-multi-dashboard-tabs .widget-manager-multi-dashboard-tab-hover {
border-color: #333333;
+}
+
+.widget-manager-groups-widgets-top-row {
+ width: 100%;
+ min-height: 0px !important;
+}
+
+.widget-manager-groups-widgets-top-row-highlight {
+ min-height: 50px !important;
}
View
11 views/default/widget_manager/js/site.php
@@ -16,7 +16,16 @@ function widget_manager_widgets_search(q){
function widget_manager_init(){
// reset draggable functionality to pointer
- $(".elgg-widgets").sortable("option", "tolerance", 'pointer');
+ $(".elgg-widgets").sortable("option", "tolerance", "pointer");
+
+ $(".elgg-widgets").bind({
+ sortstart: function(event, ui){
+ $(".widget-manager-groups-widgets-top-row").addClass("widget-manager-groups-widgets-top-row-highlight");
+ },
+ sortstop: function(event, ui){
+ $(".widget-manager-groups-widgets-top-row").removeClass("widget-manager-groups-widgets-top-row-highlight");
+ }
+ });
}
elgg.register_hook_handler('init', 'system', widget_manager_init);
Please sign in to comment.
Something went wrong with that request. Please try again.