Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
etherpad-lite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
runcon
etherpad-lite
Commits
9ff3aa0e
Commit
9ff3aa0e
authored
12 years ago
by
Matthias Bartelmeß
Browse files
Options
Downloads
Patches
Plain Diff
make /static/tests.html functional again,
added getLastEdited
parent
6d5fe459
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/static/tests.html
+14
-12
14 additions, 12 deletions
src/static/tests.html
with
14 additions
and
12 deletions
src/static/tests.html
+
14
−
12
View file @
9ff3aa0e
...
...
@@ -3,7 +3,7 @@
<head>
<meta
charset=
"utf-8"
>
<title>
API Test and Examples Page
</title>
<script
type=
"text/javascript"
src=
"js/jquery.
min.
js"
></script>
<script
type=
"text/javascript"
src=
"js/jquery.js"
></script>
<style
type=
"text/css"
>
body
{
font-size
:
9pt
;
...
...
@@ -64,24 +64,25 @@
callFunction
(
name
,
results_node
,
params
);
});
var
template
=
$
(
'
#template
'
)
$
(
'
.define
'
).
each
(
function
()
{
var
functionName
=
parseName
(
$
(
this
).
text
());
var
parameters
=
parseParameters
(
$
(
this
).
text
());
var
$
te
mplate
=
$
(
'
#
template
'
)
.
clone
();
var
te
stGroup
=
template
.
clone
();
$
te
mplate
.
find
(
'
h2
'
).
text
(
functionName
+
"
()
"
);
te
stGroup
.
find
(
'
h2
'
).
text
(
functionName
+
"
()
"
);
var
$
table
=
$
te
mplate
.
find
(
'
table
'
);
var
table
=
te
stGroup
.
find
(
'
table
'
);
$
(
parameters
).
each
(
function
(
index
,
el
)
{
$
table
.
prepend
(
'
<tr><td>
'
+
el
+
'
:</td>
'
+
table
.
prepend
(
'
<tr><td>
'
+
el
+
'
:</td>
'
+
'
<td style="width:200px"><input type="text" size="10" name="
'
+
el
+
'
" /></td></tr>
'
);
});
$
te
mplate
.
css
({
display
:
"
block
"
});
$
te
mplate
.
appendTo
(
'
body
'
);
te
stGroup
.
css
({
display
:
"
block
"
});
te
stGroup
.
appendTo
(
'
body
'
);
});
});
...
...
@@ -113,13 +114,12 @@
$
(
'
#result
'
).
text
(
'
Calling
'
+
memberName
+
"
()...
"
);
params
[
"
apikey
"
]
=
$
(
"
#apikey
"
).
val
();
$
.
ajax
({
type
:
"
GET
"
,
url
:
"
/api/1/
"
+
memberName
,
data
:
params
,
success
:
function
(
json
)
{
results_node
.
text
(
json
);
success
:
function
(
json
,
status
,
xhr
)
{
results_node
.
text
(
xhr
.
responseText
);
},
error
:
function
(
jqXHR
,
textStatus
,
errorThrown
)
{
results_node
.
html
(
"
textStatus:
"
+
textStatus
+
"
<br />errorThrown:
"
+
errorThrown
);
...
...
@@ -137,7 +137,8 @@
<td
class=
"buttonBox"
colspan=
"2"
style=
"text-align:right;"
><input
type=
"button"
value=
"Run"
/></td>
</tr>
</table>
<div
class=
"results"
/>
<div
class=
"results"
></div>
</div>
<div
class=
"define"
>
createGroup()
</div>
<div
class=
"define"
>
deleteGroup(groupID)
</div>
...
...
@@ -155,6 +156,7 @@
<div
class=
"define"
>
getText(padID,rev)
</div>
<div
class=
"define"
>
setText(padID,text)
</div>
<div
class=
"define"
>
getRevisionsCount(padID)
</div>
<div
class=
"define"
>
getLastEdited(padID)
</div>
<div
class=
"define"
>
deletePad(padID)
</div>
<div
class=
"define"
>
getReadOnlyID(padID)
</div>
<div
class=
"define"
>
setPublicStatus(padID,publicStatus)
</div>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment