mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-19 18:24:39 +00:00
Change js-call-class of timetable button
This commit is contained in:
parent
643fefc84b
commit
de0063e829
@ -44,7 +44,7 @@ class ImporterPlugin(IndicoPlugin):
|
||||
return blueprint
|
||||
|
||||
def get_timetable_buttons(self, *args, **kwargs):
|
||||
yield (_('Importer'), 'createImporterDialog')
|
||||
yield (_('Importer'), 'create-importer-dialog')
|
||||
|
||||
def get_vars_js(self):
|
||||
return {'urls': {'import_data': plugin_url_rule_to_js('importer.import_data'),
|
||||
|
||||
@ -1353,7 +1353,7 @@ type("TableTreeList", [], {
|
||||
|
||||
|
||||
$(function() {
|
||||
$('#timetableDiv').on('click', '.js-createImporterDialog', function(event) {
|
||||
$('#timetableDiv').on('click', '.js-create-importer-dialog', function(event) {
|
||||
var timetable = $(this).data('timetable');
|
||||
new ImportDialog(timetable);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user