call correct method in js
This commit is contained in:
parent
946de86bc2
commit
8503b2554c
2 changed files with 20 additions and 1 deletions
19
src/c3nav/site/migrations/0004_siteupdate_tweaks.py
Normal file
19
src/c3nav/site/migrations/0004_siteupdate_tweaks.py
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Generated by Django 1.11.7 on 2017-12-24 00:24
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('site', '0003_siteupdate'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterModelOptions(
|
||||||
|
name='siteupdate',
|
||||||
|
options={'get_latest_by': 'created', 'verbose_name': 'Site update', 'verbose_name_plural': 'Site updates'},
|
||||||
|
),
|
||||||
|
]
|
|
@ -922,7 +922,7 @@ c3nav = {
|
||||||
},
|
},
|
||||||
_modal_loaded: function(data) {
|
_modal_loaded: function(data) {
|
||||||
if (data.startsWith('{')) {
|
if (data.startsWith('{')) {
|
||||||
c3nav._fetch_updates_callback(JSON.parse(data));
|
c3nav._set_user_data(JSON.parse(data));
|
||||||
history.back();
|
history.back();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue