utils.py
changeset 6448 8590d82e9b1b
parent 6409 d75535983224
child 6492 47a284c0d012
equal deleted inserted replaced
6447:f5d1b1025702 6448:8590d82e9b1b
   253 
   253 
   254     def add_onload(self, jscode, jsoncall=_MARKER):
   254     def add_onload(self, jscode, jsoncall=_MARKER):
   255         if jsoncall is not _MARKER:
   255         if jsoncall is not _MARKER:
   256             warn('[3.7] specifying jsoncall is not needed anymore',
   256             warn('[3.7] specifying jsoncall is not needed anymore',
   257                  DeprecationWarning, stacklevel=2)
   257                  DeprecationWarning, stacklevel=2)
   258         self.add_post_inline_script(u"""jQuery(CubicWeb).one('server-response', function(event) {
   258         self.add_post_inline_script(u"""$(cw).one('server-response', function(event) {
   259 %s});""" % jscode)
   259 %s});""" % jscode)
   260 
   260 
   261 
   261 
   262     def add_js(self, jsfile):
   262     def add_js(self, jsfile):
   263         """adds `jsfile` to the list of javascripts used in the webpage
   263         """adds `jsfile` to the list of javascripts used in the webpage