mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-05 04:56:02 +01:00
(refs #131)Don't create Dropzone if image has been registered.
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
</label>
|
||||
}
|
||||
<input type="hidden" name="fileId" value=""/>
|
||||
@if(account.isEmpty || account.get.image.isEmpty){
|
||||
<script>
|
||||
$(function(){
|
||||
var dropzone = new Dropzone('div#clickable', {
|
||||
@@ -32,6 +33,7 @@ $(function(){
|
||||
});
|
||||
});
|
||||
</script>
|
||||
}
|
||||
<style type="text/css">
|
||||
div.dz-filename, div.dz-size, div.dz-progress, div.dz-success-mark, div.dz-error-mark, div.dz-error-message {
|
||||
display: none;
|
||||
|
||||
Reference in New Issue
Block a user