Taddeus Kroes преди 13 години
родител
ревизия
31ea8b8747
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  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) {