mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge from dustmoo/gridster.js
* commit '8f431a423302c7c58f511d5ede9270077993f9b3': Updated Readme Updated Readme Version Updates Serialize bug fix Added max_rows and drag restriction - ready for integration :) Removed console.logs Removed console.logs Good enough swap logic for now Swap queue awesomeness Swap queue awesomeness Fix row issue working on map grid functionality
This commit is contained in:
26
CHANGELOG.md
26
CHANGELOG.md
@ -248,6 +248,32 @@
|
||||
|
||||
dustmoo Modifications
|
||||
===========
|
||||
Changelog 2013-02-27
|
||||
|
||||
Added "Static widget support" Static Items default to the "static" class.
|
||||
|
||||
You can customize this class by using the code below:
|
||||
|
||||
$.gridster({
|
||||
static_class: 'custom_class',
|
||||
draggable: {
|
||||
items: ".gs_w:not(.custom_class)"
|
||||
}
|
||||
});
|
||||
|
||||
I have also added functions creating a much more thourough check of whether the player can occupy the space you are moving it too.
|
||||
This version is much more reliable in swapping space with widgets.
|
||||
|
||||
There are also new options for Maximum Rows and Maximum Columns:
|
||||
|
||||
$.gridster({
|
||||
max_rows: map_rows,
|
||||
max_cols: map_cols,
|
||||
shift_larger_widgets_down: false
|
||||
});
|
||||
|
||||
Setting the maximum amount of rows only completely works if you disable shifting larger widgets down at the moment.
|
||||
|
||||
|
||||
Changelog 11-26-2012
|
||||
|
||||
|
Reference in New Issue
Block a user