Kaynağa Gözat

Code cleanup

Taddeus Kroes 13 yıl önce
ebeveyn
işleme
31ea8b8747
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 3 3
      src/frontend/js/editor.js

+ 3 - 3
src/frontend/js/editor.js

@@ -251,11 +251,11 @@
     }
 
     $('#btn-clear').click(function() {
-        input_textarea.val('');
-        pretty_print.find('.box,.hint').remove();
-        trigger_update = true;
         clear_error();
         hide_loader();
+        input_textarea.val('').focus();
+        trigger_update = true;
+        window.update_math();
     });
 
     function bind_request(btn, url, handler, condition) {