mirror of
https://github.com/php/web-wiki.git
synced 2025-08-03 16:09:44 +00:00
30 lines
824 B
JavaScript
30 lines
824 B
JavaScript
/**
|
|
* JavsScript methods for the dokuwiki doodle plugin
|
|
*
|
|
* @author Robert Rackl <spam11@doogie.de>
|
|
* @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();
|
|
} |