Change js-call-class of timetable button

This commit is contained in:
Alejandro Avilés 2014-10-30 11:42:17 +01:00
parent 643fefc84b
commit de0063e829
2 changed files with 2 additions and 2 deletions

View File

@ -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'),

View File

@ -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);
});