adding the server side code to generate context menu

This commit is contained in:
Kohsuke Kawaguchi committed 2012-02-20 18:54:53 +09:00
1 parent 7c58bb4865
commit 30bb3fde5b
5 files changed
+118 -4

No files matched your search

+2 -1
View File
@@ -792,7 +792,8 @@ public class Functions {
*/
public static String getIconFilePath(Action a) {
String name = a.getIconFileName();
if(name.startsWith("/"))
if (name==null) return null;
if (name.startsWith("/"))
return name.substring(1);
else
return "images/24x24/"+name;