Add an ability to move a widget below the lowest widget
%>
<div class="dashboard-column-wrapper" style="width: <%= columns[index-1] -%>;margin: 0 -1px 0 0;">
<div class="dashboard-column" id="dashboard-column-<%= index -%>" style="margin: 0 <%= index<columns.size() ? "5px" : "0px" -%> 0 <%= index>1 ? "5px" : "0px" -%>;">
- <div class="column-handle" style="display: none"></div>
-
<%
@dashboard.widgets.select { |widget| widget.column_index==index && widget.java_definition }.sort_by { |widget| widget.row_index }.each do |widget|
%>
<%
end
%>
+ <div class="column-handle" style="display: none"></div>
</div>
</div>
<% end %>
.on('dragstart', function(e) {
e.originalEvent.dataTransfer.setData('text/plain', 'drag');
draggable = $(this);
+ columnHandle.show();
})
.on('dragover', function(e) {
if (draggable.prop('id') !== $(this).prop('id')) {
}
#dashboard .column-handle {
- height: 100px;
+ height: 30px;
width: 100%;
margin: 0;
padding: 0;
text-align: center;
font-size: x-large;
vertical-align: middle;
- color: #555;
+ background-color: #eee;
}
#dashboard .block {