mirror of
https://github.com/Mistake35/Cedar-Django.git
synced 2026-07-18 00:21:14 +10:00
bruh
- Fixed duplicate image uploading bug (i think) - changing community settings now redirects you, same with creating a community.
This commit is contained in:
@@ -3606,11 +3606,12 @@ mode_post = 0;
|
||||
*/
|
||||
b.router.connect("^/communities/[0-9]+/(tools)$", function(c, d, e) {
|
||||
function f(c) {
|
||||
var d = a(this)
|
||||
, e = d.closest("form");
|
||||
var d = a(this),
|
||||
e = d.closest("form");
|
||||
b.Form.isDisabled(d) || c.isDefaultPrevented() || (c.preventDefault(),
|
||||
b.Form.submit(e, d).done(function(a) {
|
||||
b.Net.reload()
|
||||
var communityId = window.location.pathname.split('/')[2];
|
||||
window.location = "/communities/" + communityId;
|
||||
}))
|
||||
}
|
||||
a(document).on("click", ".apply-button", f),
|
||||
@@ -3620,13 +3621,13 @@ mode_post = 0;
|
||||
}),
|
||||
b.router.connect("^/c/create$", function(c, d, e) {
|
||||
function f(c) {
|
||||
var d = a(this)
|
||||
, e = d.closest("form");
|
||||
var d = a(this),
|
||||
e = d.closest("form");
|
||||
b.Form.isDisabled(d) || c.isDefaultPrevented() || (c.preventDefault(),
|
||||
b.Form.submit(e, d).done(function(a) {
|
||||
b.Net.reload()
|
||||
}))
|
||||
}
|
||||
window.location = "/";
|
||||
}))
|
||||
}
|
||||
a(document).on("click", ".apply-button", f),
|
||||
e.done(function() {
|
||||
a(document).off("click", ".apply-button", f)
|
||||
|
||||
Reference in New Issue
Block a user