# HG changeset patch # User RĂ©mi Cardona # Date 1401099022 -7200 # Node ID faf0511ac1815492f96ea6002c32db8f6f2374af # Parent 566d90bdc565034af8c0e26465ade4dc29021e37 [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 diff -r 566d90bdc565 -r faf0511ac181 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