Revision 622,
624 bytes
checked in by niltonneto, 16 years ago
(diff) |
Resolve #406, #408
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[622] | 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 teste() |
---|
| 16 | { |
---|
| 17 | alert('aqui dentro'); |
---|
| 18 | } |
---|
| 19 | |
---|
| 20 | function setPath() |
---|
| 21 | { |
---|
| 22 | if( arguments.length > 0 && path_jabberit == null ) |
---|
| 23 | path_jabberit = arguments[0]; |
---|
| 24 | } |
---|
| 25 | |
---|
| 26 | function changeStatus(){} |
---|
| 27 | |
---|
| 28 | changeStatus.prototype.get = getStatus; |
---|
| 29 | changeStatus.prototype.setpath = setPath; |
---|
| 30 | |
---|
| 31 | window.changestatus = new changeStatus; |
---|
| 32 | |
---|
| 33 | })(); |
---|
Note: See
TracBrowser
for help on using the repository browser.