good morning netherlands commit
Signed-off-by: Flashwave <me@flash.moe>
This commit is contained in:
parent
1e7b0e46e6
commit
97cfb82875
2 changed files with 21 additions and 1 deletions
|
@ -1982,6 +1982,11 @@
|
|||
"type": "FIX",
|
||||
"change": "Fixed error caused by users table being empty on front page.",
|
||||
"user": "Flashwave"
|
||||
},
|
||||
{
|
||||
"type": "ADD",
|
||||
"change": "Added dynamicness(?) to the profile editing section.",
|
||||
"user": "Flashwave"
|
||||
}
|
||||
|
||||
]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<form enctype="multipart/form-data" method="post" action="{{ sakura.currentpage }}">
|
||||
<form enctype="multipart/form-data" method="post" action="{{ sakura.currentpage }}" id="editProfileForm">
|
||||
<input type="hidden" name="sessid" value="{{ php.sessionid }}" />
|
||||
<input type="hidden" name="timestamp" value="{{ php.time }}" />
|
||||
<input type="hidden" name="mode" value="profile" />
|
||||
|
@ -25,3 +25,18 @@
|
|||
<input type="reset" value="Reset" name="reset" class="inputStyling" />
|
||||
</div>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
window.addEventListener("load", function() {
|
||||
var editProfileForm = document.getElementById('editProfileForm');
|
||||
var createInput = document.createElement('input');
|
||||
var submit = editProfileForm.querySelector('[type="submit"]');
|
||||
|
||||
createInput.setAttribute('name', 'ajax');
|
||||
createInput.setAttribute('value', 'true');
|
||||
createInput.setAttribute('type', 'hidden');
|
||||
editProfileForm.appendChild(createInput);
|
||||
|
||||
submit.setAttribute('type', 'button');
|
||||
submit.setAttribute('onclick', 'submitPost(\''+ editProfileForm.action +'\', formToObject(\'editProfileForm\'), true, \'Updating Profile...\');');
|
||||
});
|
||||
</script>
|
||||
|
|
Reference in a new issue