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
|
// Mobile bottom navigation bar
|
||||||
|
|
||||||
window.onload = function () {
|
window.onload = function () {
|
||||||
|
@ -792,15 +782,3 @@ $('.mention-user').click(function (event) {
|
||||||
window.location.href='/@' + $(this).data('original-name');
|
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" %}
|
{% include "bootstrap.html" %}
|
||||||
|
|
||||||
<script>
|
<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){
|
$('.text-expand').click(function(event){
|
||||||
if (event.which != 1) {
|
if (event.which != 1) {
|
||||||
return
|
return
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
|
{% include "bootstrap.html" %}
|
||||||
|
|
||||||
<script>
|
<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
|
// Text Formatting
|
||||||
|
|
||||||
// Bold Text
|
// Bold Text
|
||||||
|
@ -416,8 +427,6 @@
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% include "bootstrap.html" %}
|
|
||||||
|
|
||||||
<!-- Drama JS -->
|
<!-- Drama JS -->
|
||||||
|
|
||||||
<script src="/assets/js/all_js.js"></script>
|
<script src="/assets/js/all_js.js"></script>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue