Revision 3102,
578 bytes
checked in by amuller, 14 years ago
(diff) |
Ticket #986 - Efetuado merge para o Branch 2.2( atualizacao do modulo)
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[3102] | 1 | (function() |
---|
| 2 | { |
---|
| 3 | // Path JabberIt |
---|
| 4 | var path_jabberit = null; |
---|
| 5 | |
---|
| 6 | function getStatus(pStatus, pElement) |
---|
| 7 | { |
---|
| 8 | var element = pElement; |
---|
| 9 | var status = pStatus; |
---|
| 10 | |
---|
| 11 | var url_img = path_jabberit + 'templates/default/images/' + status + '.gif'; |
---|
| 12 | element.style.backgroundImage = 'url(' + url_img +')'; |
---|
| 13 | } |
---|
| 14 | |
---|
| 15 | function setPath() |
---|
| 16 | { |
---|
| 17 | if( arguments.length > 0 && path_jabberit == null ) |
---|
| 18 | path_jabberit = arguments[0]; |
---|
| 19 | } |
---|
| 20 | |
---|
| 21 | function changeStatus(){} |
---|
| 22 | |
---|
| 23 | changeStatus.prototype.get = getStatus; |
---|
| 24 | changeStatus.prototype.setpath = setPath; |
---|
| 25 | |
---|
| 26 | window.changestatus = new changeStatus; |
---|
| 27 | |
---|
| 28 | })(); |
---|
Note: See
TracBrowser
for help on using the repository browser.