mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-05 04:56:02 +01:00
Add loading indicator to wiki previewing.
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
<script>
|
||||
$(function(){
|
||||
$('#preview').click(function(){
|
||||
$('#preview-area').html('<img src="@path/assets/common/images/indicator.gif"> Previewing...');
|
||||
$.post('@path/@repository.owner/@repository.name/wiki/_preview', {
|
||||
content: $('#content').val()
|
||||
}, function(data){
|
||||
|
||||
BIN
src/main/webapp/assets/common/images/indicator-bar.gif
Normal file
BIN
src/main/webapp/assets/common/images/indicator-bar.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
BIN
src/main/webapp/assets/common/images/indicator.gif
Normal file
BIN
src/main/webapp/assets/common/images/indicator.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 734 B |
Reference in New Issue
Block a user