[Owncloud] Share API icons

Kropf Johannes Johannes.Kropf at ait.ac.at
Sun Sep 8 13:37:34 UTC 2013


Dear community,

when calling "OC.Share.loadIcons('type'); in my apps Javascript code,

$(document).ready(function() {
    OC.Share.loadIcons('mytype');
}

the icons are not shown initially when the page gets loaded. It seems to work only if an ajax request of the share api has been made. Should mean, when I add something to click on between the anchor tags and load the share dropdown, the right icon is shown afterwards.

I checked out also the "calendar" app and its share features, there the icons are added manually via the php script.
I guess that is not the desired solution.

Any advices?

Kind regards,
J

JOHANNES KROPF
Health & Environment Department
Biomedical Systems

AIT Austrian Institute of Technology GmbH
Viktor Kaplan Straße 2  |  2700 Wiener Neustadt  |  Austria
T +43(0) 50550-4845  |  M +43(0) 664 235 1732  |  F +43(0) 50550-4803
johannes.kropf at ait.ac.at<mailto:johannes.kropf at ait.ac.at> |  http://www.ait.ac.at

FN: 115980 i HG Wien  |  UID: ATU14703506
www.ait.ac.at/Email-Disclaimer<http://www.ait.ac.at/Email-Disclaimer> <http://www.ait.ac.at/Email-Disclaimer>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20130908/88f081d9/attachment.html>


More information about the Owncloud mailing list