src/pyams_content/features/menu/zmi/__init__.py
changeset 673 e609ce907277
parent 635 ac6c59149f0d
child 687 2a176cd699ac
equal deleted inserted replaced
672:adff375e9deb 673:e609ce907277
   161     @property
   161     @property
   162     def data_attributes(self):
   162     def data_attributes(self):
   163         menus = getattr(self.context, self.associations_name)
   163         menus = getattr(self.context, self.associations_name)
   164         attributes = super(MenusTable, self).data_attributes
   164         attributes = super(MenusTable, self).data_attributes
   165         attributes.setdefault('table', {}).update({
   165         attributes.setdefault('table', {}).update({
   166             'id': self.id,
       
   167             'data-ams-location': absolute_url(menus, self.request),
   166             'data-ams-location': absolute_url(menus, self.request),
   168             'data-ams-tablednd-drag-handle': 'td.sorter',
   167             'data-ams-tablednd-drag-handle': 'td.sorter',
   169             'data-ams-tablednd-drop-target': 'set-menus-order.json',
   168             'data-ams-tablednd-drop-target': 'set-menus-order.json',
   170             'data-ams-visibility-switcher': 'switch-menu-visibility.json'
   169             'data-ams-visibility-switcher': 'switch-menu-visibility.json'
   171         })
   170         })