-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathscript.js
30 lines (28 loc) · 825 Bytes
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/**
* JavsScript methods for the dokuwiki doodle plugin
*
* @author Robert Rackl <[email protected]>
* @date January 2011
*/
/**
* edit an entry
* @param formId Id of the form tag
* @param fullname name of the entry that should be edited
*/
function editEntry(formId, fullname) {
var doodleForm = document.getElementById(formId);
doodleForm.formId = formId;
doodleForm.edit__entry.value = fullname;
doodleForm.submit();
}
/**
* delete the given entry
* @param formId Id of the form tag
* @param fullname name of the entry that should be edited
*/
function deleteEntry(formId, fullname) {
var doodleForm = document.getElementById(formId);
doodleForm.formId = formId;
doodleForm.delete__entry.value = fullname;
doodleForm.submit();
}