Commit adc54bc2 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1928611: Hide android/ios version of tinymce when modal closed



Change-Id: Ica0da1561756bae5572d86be39d58699a37fd503
Signed-off-by: default avatarRobert Lyon <robertl@catalyst.net.nz>
parent 8dc03e62
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -603,8 +603,8 @@
     * Rewrites a configure button to be AJAX
     */
    function rewriteConfigureButton(button) {
        button.off('click');
        button.on('click', function(e) {
        button.off('click touchstart');
        button.on('click touchstart', function(e) {
            e.stopPropagation();
            e.preventDefault();

@@ -625,10 +625,8 @@
     * in that case.
     */
    function rewriteDeleteButton(button, pblockinstanceId) {
        button.off('click');

        button.on('click', function(e) {

        button.off('click touchstart');
        button.on('click touchstart', function(e) {
            e.stopPropagation();
            e.preventDefault();

+7 −0
Original line number Diff line number Diff line
@@ -105,3 +105,10 @@
        }
    }
}

// For comment / annotation / peerassessment blocks where the feedback modal is hidden
// we need to hide the android version of tinymce also
.modal-docked:not(.active) .tinymce-mobile-android-container,
.modal-docked:not(.active) .tinymce-mobile-ios-container {
    display: none;
}