[web/data] Remove broken backward compatibility function
authorRémi Cardona <remi.cardona@logilab.fr>
Mon, 26 May 2014 12:10:22 +0200
changeset 9814 faf0511ac181
parent 9755 566d90bdc565
child 9815 12e6d911027a
[web/data] Remove broken backward compatibility function popupLoginBox() was deprecated in favor of cw.htmlhelpers.popupLoginBox() However, the use of cw.utils.deprecatedFunction() is broken. In firebug: >>> popupLoginBox() TypeError: newfunc is undefined cubicweb.js:113 (ligne 13) This function was modified back in 2010, so it's been broken for 4 years. Let's just get rid of it. Closes #4042978
web/data/cubicweb.htmlhelpers.js
--- a/web/data/cubicweb.htmlhelpers.js	Tue May 06 15:58:20 2014 +0200
+++ b/web/data/cubicweb.htmlhelpers.js	Mon May 26 12:10:22 2014 +0200
@@ -107,18 +107,6 @@
 }
 
 /**
- * .. function:: popupLoginBox()
- *
- * toggles visibility of login popup div
- */
-// XXX used exactly ONCE in basecomponents
-popupLoginBox = cw.utils.deprecatedFunction(
-    function() {
-        $('#popupLoginBox').toggleClass('hidden');
-        jQuery('#__login:visible').focus();
-});
-
-/**
  * .. function getElementsMatching(tagName, properties, \/* optional \*\/ parent)
  *
  * returns the list of elements in the document matching the tag name