mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-06 13:35:50 +01:00
Add loading indicator to wiki previewing.
This commit is contained in:
@@ -45,6 +45,7 @@
|
|||||||
<script>
|
<script>
|
||||||
$(function(){
|
$(function(){
|
||||||
$('#preview').click(function(){
|
$('#preview').click(function(){
|
||||||
|
$('#preview-area').html('<img src="@path/assets/common/images/indicator.gif"> Previewing...');
|
||||||
$.post('@path/@repository.owner/@repository.name/wiki/_preview', {
|
$.post('@path/@repository.owner/@repository.name/wiki/_preview', {
|
||||||
content: $('#content').val()
|
content: $('#content').val()
|
||||||
}, function(data){
|
}, 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