[javascript] minor lints 3.0
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Wed, 28 Jan 2009 10:29:39 +0100
branch3.0
changeset 492 cd792cfda071
parent 484 93c8ee015e3c
child 493 334df77b38f5
child 2028 b2b787595c5c
[javascript] minor lints
web/data/cubicweb.ajax.js
--- a/web/data/cubicweb.ajax.js	Tue Jan 27 17:54:30 2009 +0100
+++ b/web/data/cubicweb.ajax.js	Wed Jan 28 10:29:39 2009 +0100
@@ -69,7 +69,7 @@
  * the associated RQL to build them (Async call)
  */
 function loadDynamicFragments() {
-    var fragments = getElementsByTagAndClassName('div', 'dynamicFragment');
+    var fragments = jQuery('div.dynamicFragment');
     if (fragments.length == 0) {
 	return;
     }
@@ -277,7 +277,7 @@
  * while the page was generated.
  */
 function unregisterUserCallback(cbname) {
-    d = async_remote_exec('unregister_user_callback', cbname);
+    var d = async_remote_exec('unregister_user_callback', cbname);
     d.addCallback(function() {resetCursor();});
     d.addErrback(function(xxx) {
 	updateMessage(_("an error occured"));