sneed
This commit is contained in:
parent
c3493ede84
commit
82ba5ab897
3 changed files with 25 additions and 26 deletions
|
@ -713,16 +713,6 @@ $(document).ready(function() {
|
|||
});
|
||||
});
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#submitform').submit(function() {
|
||||
// disable button
|
||||
$("#create_button").prop("disabled", true);
|
||||
// add spinner to button
|
||||
$("#create_button").html('<span class="spinner-border spinner-border-sm mr-2" role="status" aria-hidden="true"></span>Creating post');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
// Mobile bottom navigation bar
|
||||
|
||||
window.onload = function () {
|
||||
|
@ -792,15 +782,3 @@ $('.mention-user').click(function (event) {
|
|||
window.location.href='/@' + $(this).data('original-name');
|
||||
|
||||
});
|
||||
|
||||
$('.expandable-image').click( function(event) {
|
||||
|
||||
if (event.which != 1) {
|
||||
return
|
||||
}
|
||||
event.preventDefault();
|
||||
|
||||
var url= $(this).data('url');
|
||||
|
||||
expandDesktopImage(url,url);
|
||||
})
|
|
@ -4,6 +4,18 @@
|
|||
{% include "bootstrap.html" %}
|
||||
|
||||
<script>
|
||||
$('.expandable-image').click( function(event) {
|
||||
|
||||
if (event.which != 1) {
|
||||
return
|
||||
}
|
||||
event.preventDefault();
|
||||
|
||||
var url= $(this).data('url');
|
||||
|
||||
expandDesktopImage(url,url);
|
||||
})
|
||||
|
||||
$('.text-expand').click(function(event){
|
||||
if (event.which != 1) {
|
||||
return
|
||||
|
|
|
@ -1,9 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
||||
{% include "bootstrap.html" %}
|
||||
|
||||
<script>
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#submitform').submit(function() {
|
||||
// disable button
|
||||
$("#create_button").prop("disabled", true);
|
||||
// add spinner to button
|
||||
$("#create_button").html('<span class="spinner-border spinner-border-sm mr-2" role="status" aria-hidden="true"></span>Creating post');
|
||||
});
|
||||
});
|
||||
|
||||
// Text Formatting
|
||||
|
||||
// Bold Text
|
||||
|
@ -416,8 +427,6 @@
|
|||
|
||||
{% endblock %}
|
||||
|
||||
{% include "bootstrap.html" %}
|
||||
|
||||
<!-- Drama JS -->
|
||||
|
||||
<script src="/assets/js/all_js.js"></script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue