web/views/tabs.py
branchstable
changeset 7820 2c73fc529a20
parent 7819 93d9a9c29bfb
child 7855 54283a5b7afc
equal deleted inserted replaced
7819:93d9a9c29bfb 7820:2c73fc529a20
   126         # in the result set (tabs are pretty useless there)
   126         # in the result set (tabs are pretty useless there)
   127         if entity and len(self.cw_rset) > 1:
   127         if entity and len(self.cw_rset) > 1:
   128             entity.view(default, w=self.w)
   128             entity.view(default, w=self.w)
   129             return
   129             return
   130         self._cw.add_css('jquery.ui.css')
   130         self._cw.add_css('jquery.ui.css')
   131         self._cw.add_js(('jquery.ui.js', 'cubicweb.ajax.js'))
   131         self._cw.add_js(('jquery.ui.js', 'cubicweb.ajax.js', 'jquery.cookie.js'))
   132         # prune tabs : not all are to be shown
   132         # prune tabs : not all are to be shown
   133         tabs, active_tab = self.prune_tabs(tabs, default)
   133         tabs, active_tab = self.prune_tabs(tabs, default)
   134         # build the html structure
   134         # build the html structure
   135         w = self.w
   135         w = self.w
   136         uid = entity and entity.eid or utils.make_uid('tab')
   136         uid = entity and entity.eid or utils.make_uid('tab')