From 98f08b3ee3e262cf5529aa9af695037f6fbf0c7c Mon Sep 17 00:00:00 2001 From: mistic100 Date: Wed, 13 Feb 2013 19:26:34 +0000 Subject: feature:2847 Display additional info for API methods fields git-svn-id: http://piwigo.org/svn/trunk@20750 68402e56-0260-453c-a942-63ccdbb3a9ee --- tools/ws.htm | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/ws.htm b/tools/ws.htm index ac5844675..f8270535b 100644 --- a/tools/ws.htm +++ b/tools/ws.htm @@ -4,7 +4,9 @@ Piwigo web API (web-services) explorer + + @@ -408,6 +413,7 @@ function fillNewMethod(methodName) { var isOptional = method.params[i].optional; var acceptArray = method.params[i].acceptArray; var defaultValue = method.params[i].defaultValue == null ? '' : method.params[i].defaultValue; + var info = method.params[i].info == null ? '' : 'i'; // if an array is direclty printed, the delimiter is a comma where we use a pipe if (typeof defaultValue == 'object') { @@ -415,7 +421,7 @@ function fillNewMethod(methodName) { } methodParams+= ''+ - ''+ method.params[i].name +''+ + ''+ method.params[i].name + info +''+ ''+ (isOptional ? '?':'*') + (acceptArray ? ' []':'') +''+ ''+ ''+ @@ -435,6 +441,14 @@ function fillNewMethod(methodName) { $("input.methodParameterValue").change(function() { $("input.methodParameterSend[data-id='"+ $(this).data('id') +"']").attr('checked', 'checked'); }); + + // tiptip + $(".methodInfo").tipTip({ + activation:"click", + maxWidth:"300px", + defaultPosition:"right", + delay:0 + }); } // invoke method -- cgit v1.2.3