equal
deleted
inserted
replaced
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') |