Commit 9a7fc900 authored by Curtis Adam's avatar Curtis Adam

Delete card: Attempt to fix cards not displaying after confirm and resize the...

Delete card: Attempt to fix cards not displaying after confirm and resize the card after each content render event
parent 4eef9396
......@@ -52,6 +52,7 @@ Template.cardContentActive.onCreated(function () {
Template.cardContentActive.onRendered(function () {
CardVisuals.setMaxIframeHeight();
CardVisuals.resizeFlashcard();
});
Template.cardContentActive.helpers({
......@@ -121,6 +122,7 @@ Template.cardContentInactive.onCreated(function () {
Template.cardContentInactive.onRendered(function () {
CardVisuals.setMaxIframeHeight();
CardVisuals.resizeFlashcard();
});
Template.cardContentInactive.helpers({
......
......@@ -2,9 +2,6 @@ import {Template} from "meteor/templating";
import {Meteor} from "meteor/meteor";
import {Session} from "meteor/session";
import {BertAlertVisuals} from "../../../api/bertAlertVisuals";
import {Route} from "../../../api/route";
import {CardVisuals} from "../../../api/cardVisuals";
import {CardNavigation} from "../../../api/cardNavigation";
import "./deleteCard.html";
/*
......@@ -20,17 +17,9 @@ Template.deleteCardForm.events({
BertAlertVisuals.displayBertAlert(TAPi18n.__('deletecardSuccess'), "success", 'growl-top-left');
$('#deleteCardModal').modal('hide');
$('.modal-backdrop').css('display', 'none');
Session.set('activeCard', undefined);
$('#deleteCardModal').on('hidden.bs.modal', function () {
$('.deleteCard').removeClass("pressed");
if (Route.isEditMode()) {
Router.go('cardsetdetailsid', {
_id: Router.current().params._id
});
} else {
CardVisuals.resizeFlashcard();
CardNavigation.selectButton();
}
Session.set('activeCard', undefined);
});
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment