/* To avoid CSS expressions while still supporting IE 7 and IE 6, use this script */
|
/* The script tag referencing this file must be placed before the ending body tag. */
|
|
/* Use conditional comments in order to target IE 7 and older:
|
<!--[if lt IE 8]><!-->
|
<script src="ie7/ie7.js"></script>
|
<!--<![endif]-->
|
*/
|
|
(function() {
|
function addIcon(el, entity) {
|
var html = el.innerHTML;
|
el.innerHTML = '<span style="font-family: \'mobox-org\'">' + entity + '</span>' + html;
|
}
|
var icons = {
|
'mobox-org-user-manage': '',
|
'mobox-org-org_struct': '',
|
'mobox-org-address-book2': '',
|
'mobox-org-add-user': '',
|
'mobox-org-company': '',
|
'mobox-org-del-user1': '',
|
'mobox-org-department': '',
|
'mobox-org-depart-user': '',
|
'mobox-org-manger': '',
|
'mobox-org-meeting': '',
|
'mobox-org-meeting2': '',
|
'mobox-org-meeting-room': '',
|
'mobox-org-member': '',
|
'mobox-org-my-collection': '',
|
'mobox-org-person': '',
|
'mobox-org-select-user': '',
|
'mobox-org-user': '',
|
'mobox-org-user-group': '',
|
'mobox-org-user-group-info': '',
|
'mobox-org-user-info': '',
|
'mobox-org-user-info2': '',
|
'mobox-org-users': '',
|
'0': 0
|
},
|
els = document.getElementsByTagName('*'),
|
i, c, el;
|
for (i = 0; ; i += 1) {
|
el = els[i];
|
if(!el) {
|
break;
|
}
|
c = el.className;
|
c = c.match(/mobox-org-[^\s'"]+/);
|
if (c && icons[c[0]]) {
|
addIcon(el, icons[c[0]]);
|
}
|
}
|
}());
|