فهرست منبع

remove crowi-form.js

Yuki Takei 7 سال پیش
والد
کامیت
9913650f1b
3فایلهای تغییر یافته به همراه0 افزوده شده و 20 حذف شده
  1. 0 1
      config/webpack.common.js
  2. 0 5
      lib/views/_form.html
  3. 0 14
      resource/js/legacy/crowi-form.js

+ 0 - 1
config/webpack.common.js

@@ -22,7 +22,6 @@ module.exports = (options) => {
     entry: Object.assign({
       'js/app':                   './resource/js/app',
       'js/legacy':                './resource/js/legacy/crowi',
-      'js/legacy-form':           './resource/js/legacy/crowi-form',
       'js/legacy-admin':          './resource/js/legacy/crowi-admin',
       'js/legacy-presentation':   './resource/js/legacy/crowi-presentation',
       'js/plugin':                './resource/js/plugin',

+ 0 - 5
lib/views/_form.html

@@ -1,8 +1,3 @@
-{% block html_head_loading_legacy %}
-  <script src="{{ webpack_asset('js/legacy-form.js') }}" defer></script>
-  {% parent %}
-{% endblock %}
-
 {% if req.form.errors %}
 <div class="alert alert-danger">
   <ul>

+ 0 - 14
resource/js/legacy/crowi-form.js

@@ -1,14 +0,0 @@
-// const pagePath= $('#content-main').data('path');
-
-// /**
-//  * DOM ready
-//  */
-// $(function() {
-
-//   $('#page-form').on('submit', function(e) {
-//     // avoid message
-//     // isFormChanged = false;
-//     window.crowi.clearDraft(pagePath);
-//   });
-
-// });