my_dashboard 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/app/assets/javascripts/my_dashboard/my_dashboard.coffee +18 -0
- data/lib/my_dashboard/version.rb +1 -1
- data/lib/my_dashboard.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99b7d74c7ca0a7d0825593f4b182c01744758bf1
|
4
|
+
data.tar.gz: feb4c1e1bc818ead9a1b73a624b7119ee39cffed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d87180430d12432ff789d565e44d3c1743426fdf77ed32f8e1bd06fe7e1b16d9f231534f51e880040f4f059def45c5b6e38024c005fae4b4d4c8c480acdf9288
|
7
|
+
data.tar.gz: 1f722d069ffc23d44f1e080eff47983d9050af10116b6b084d62ea9e3ab2069d57cd2cc711bd2f11fdffa80876b3f2bd90997ab92a20611cc09dbd7c3579d6b5
|
data/CHANGELOG.md
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
console.log("Yeah! The dashboard has started!")
|
2
|
+
|
3
|
+
MyDashboard.on 'ready', ->
|
4
|
+
MyDashboard.widget_margins ||= [5, 5]
|
5
|
+
MyDashboard.widget_base_dimensions ||= [300, 360]
|
6
|
+
MyDashboard.numColumns ||= 4
|
7
|
+
|
8
|
+
contentWidth = (MyDashboard.widget_base_dimensions[0] + MyDashboard.widget_margins[0] * 2) * MyDashboard.numColumns
|
9
|
+
|
10
|
+
Batman.setImmediate ->
|
11
|
+
$('.gridster').width(contentWidth)
|
12
|
+
$('.gridster ul:first').gridster
|
13
|
+
widget_margins: MyDashboard.widget_margins
|
14
|
+
widget_base_dimensions: MyDashboard.widget_base_dimensions
|
15
|
+
avoid_overlapped_widgets: !MyDashboard.customGridsterLayout
|
16
|
+
draggable:
|
17
|
+
stop: MyDashboard.showGridsterInstructions
|
18
|
+
start: -> MyDashboard.currentWidgetPositions = MyDashboard.getWidgetPositions()
|
data/lib/my_dashboard/version.rb
CHANGED
data/lib/my_dashboard.rb
CHANGED