Sfoglia il codice sorgente

syntax error on danish translations (#1775)

Missing jquery dependancy injection. Webpack fails compiling
Marco P 3 anni fa
parent
commit
7e1e3b56a7
1 ha cambiato i file con 11 aggiunte e 2 eliminazioni
  1. 11 2
      js/locales/da.js

+ 11 - 2
js/locales/da.js

@@ -8,7 +8,16 @@
  *
  * NOTE: this file must be saved in UTF-8 encoding.
  */
-(function($) {
+(function (factory) {
+    'use strict';
+    if (typeof define === 'function' && define.amd) {
+        define(['jquery'], factory);
+    } else if (typeof module === 'object' && typeof module.exports === 'object') {
+        factory(require('jquery'));
+    } else {
+        factory(window.jQuery);
+    }
+}(function($) {
     "use strict";
 
     $.fn.fileinputLocales['da'] = {
@@ -112,4 +121,4 @@
             close: 'Luk detaljeret visning'
         }
     };
-}));
+}));