equal
deleted
inserted
replaced
|
1 /* in CW 3.10, we should move these functions in this namespace */ |
|
2 cw.htmlhelpers = new Namespace('cw.htmlhelpers'); |
|
3 |
|
4 jQuery.extend(cw.htmlhelpers, { |
|
5 popupLoginBox: function(loginboxid, focusid) { |
|
6 $('#'+loginboxid).toggleClass('hidden'); |
|
7 jQuery('#' + focusid +':visible').focus(); |
|
8 } |
|
9 }); |
|
10 |
|
11 |
1 /** |
12 /** |
2 * .. function:: baseuri() |
13 * .. function:: baseuri() |
3 * |
14 * |
4 * returns the document's baseURI. (baseuri() uses document.baseURI if |
15 * returns the document's baseURI. (baseuri() uses document.baseURI if |
5 * available and inspects the <base> tag manually otherwise.) |
16 * available and inspects the <base> tag manually otherwise.) |
95 * .. function:: popupLoginBox() |
106 * .. function:: popupLoginBox() |
96 * |
107 * |
97 * toggles visibility of login popup div |
108 * toggles visibility of login popup div |
98 */ |
109 */ |
99 // XXX used exactly ONCE in basecomponents |
110 // XXX used exactly ONCE in basecomponents |
100 function popupLoginBox() { |
111 popupLoginBox = cw.utils.deprecatedFunction( |
101 $('#popupLoginBox').toggleClass('hidden'); |
112 function() { |
102 jQuery('#__login:visible').focus(); |
113 $('#popupLoginBox').toggleClass('hidden'); |
103 } |
114 jQuery('#__login:visible').focus(); |
|
115 }); |
104 |
116 |
105 /** |
117 /** |
106 * .. function getElementsMatching(tagName, properties, \/* optional \*\/ parent) |
118 * .. function getElementsMatching(tagName, properties, \/* optional \*\/ parent) |
107 * |
119 * |
108 * returns the list of elements in the document matching the tag name |
120 * returns the list of elements in the document matching the tag name |