Explorar o código

BugFix: focus to .page-today-input2 when create-page modal is opened

Yuki Takei %!s(int64=8) %!d(string=hai) anos
pai
achega
2521367875
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      resource/js/legacy/crowi.js

+ 3 - 0
resource/js/legacy/crowi.js

@@ -205,6 +205,9 @@ $(function() {
     var dateString = today.getFullYear() + '/' + month + '/' + day;
     $('#create-page-today .page-today-suffix').text('/' + dateString + '/');
     $('#create-page-today .page-today-input2').data('prefix', '/' + dateString + '/');
+
+    // focus
+    $('#create-page-today .page-today-input2').eq(0).focus();
   });
 
   $('#create-page-today').submit(function(e) {