Browse Source

Save linklist module draggable/deletable/collapsible settings

Denis K 8 years ago
parent
commit
6d44d04c91
1 changed files with 6 additions and 0 deletions
  1. 6 0
      jet/dashboard/modules.py

+ 6 - 0
jet/dashboard/modules.py

@@ -245,10 +245,16 @@ class LinkList(DashboardModule):
 
     def settings_dict(self):
         return {
+            'draggable': self.draggable,
+            'deletable': self.deletable,
+            'collapsible': self.collapsible,
             'layout': self.layout
         }
 
     def load_settings(self, settings):
+        self.draggable = settings.get('draggable', self.draggable)
+        self.deletable = settings.get('deletable', self.deletable)
+        self.collapsible = settings.get('collapsible', self.collapsible)
         self.layout = settings.get('layout', self.layout)
 
     def store_children(self):