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