Browse Source

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

Yuki Takei 8 years ago
parent
commit
2521367875
1 changed files with 3 additions and 0 deletions
  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;
     var dateString = today.getFullYear() + '/' + month + '/' + day;
     $('#create-page-today .page-today-suffix').text('/' + dateString + '/');
     $('#create-page-today .page-today-suffix').text('/' + dateString + '/');
     $('#create-page-today .page-today-input2').data('prefix', '/' + 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) {
   $('#create-page-today').submit(function(e) {