webshims-rails 1.10.9 → 1.10.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +8 -8
  2. data/lib/webshims-rails/version.rb +2 -2
  3. data/vendor/assets/javascripts/webshims/polyfiller.js +8 -9
  4. data/vendor/assets/javascripts/webshims/shims/combos/1.js +24 -14
  5. data/vendor/assets/javascripts/webshims/shims/combos/10.js +61 -20
  6. data/vendor/assets/javascripts/webshims/shims/combos/11.js +54 -16
  7. data/vendor/assets/javascripts/webshims/shims/combos/12.js +9 -13
  8. data/vendor/assets/javascripts/webshims/shims/combos/13.js +8 -12
  9. data/vendor/assets/javascripts/webshims/shims/combos/14.js +10 -7
  10. data/vendor/assets/javascripts/webshims/shims/combos/15.js +40 -11
  11. data/vendor/assets/javascripts/webshims/shims/combos/16.js +49 -24
  12. data/vendor/assets/javascripts/webshims/shims/combos/17.js +128 -19
  13. data/vendor/assets/javascripts/webshims/shims/combos/18.js +131 -22
  14. data/vendor/assets/javascripts/webshims/shims/combos/19.js +133 -40
  15. data/vendor/assets/javascripts/webshims/shims/combos/2.js +31 -18
  16. data/vendor/assets/javascripts/webshims/shims/combos/20.js +132 -39
  17. data/vendor/assets/javascripts/webshims/shims/combos/21.js +116 -22
  18. data/vendor/assets/javascripts/webshims/shims/combos/23.js +9 -13
  19. data/vendor/assets/javascripts/webshims/shims/combos/24.js +48 -13
  20. data/vendor/assets/javascripts/webshims/shims/combos/25.js +133 -40
  21. data/vendor/assets/javascripts/webshims/shims/combos/26.js +7 -4
  22. data/vendor/assets/javascripts/webshims/shims/combos/27.js +1 -1
  23. data/vendor/assets/javascripts/webshims/shims/combos/28.js +121 -24
  24. data/vendor/assets/javascripts/webshims/shims/combos/29.js +4 -6
  25. data/vendor/assets/javascripts/webshims/shims/combos/3.js +30 -6
  26. data/vendor/assets/javascripts/webshims/shims/combos/30.js +30 -6
  27. data/vendor/assets/javascripts/webshims/shims/combos/31.js +22 -5
  28. data/vendor/assets/javascripts/webshims/shims/combos/4.js +15 -5
  29. data/vendor/assets/javascripts/webshims/shims/combos/5.js +128 -19
  30. data/vendor/assets/javascripts/webshims/shims/combos/6.js +128 -19
  31. data/vendor/assets/javascripts/webshims/shims/combos/7.js +39 -19
  32. data/vendor/assets/javascripts/webshims/shims/combos/8.js +39 -19
  33. data/vendor/assets/javascripts/webshims/shims/combos/9.js +61 -20
  34. data/vendor/assets/javascripts/webshims/shims/dom-extend.js +7 -4
  35. data/vendor/assets/javascripts/webshims/shims/es5.js +3 -3
  36. data/vendor/assets/javascripts/webshims/shims/form-core.js +15 -1
  37. data/vendor/assets/javascripts/webshims/shims/form-message.js +8 -1
  38. data/vendor/assets/javascripts/webshims/shims/form-number-date-api.js +74 -3
  39. data/vendor/assets/javascripts/webshims/shims/form-number-date-ui.js +53 -15
  40. data/vendor/assets/javascripts/webshims/shims/form-shim-extend.js +10 -5
  41. data/vendor/assets/javascripts/webshims/shims/form-validation.js +48 -13
  42. data/vendor/assets/javascripts/webshims/shims/forms-picker.js +14 -2
  43. data/vendor/assets/javascripts/webshims/shims/geolocation.js +2 -2
  44. data/vendor/assets/javascripts/webshims/shims/i18n/formcfg-ar.js +2 -2
  45. data/vendor/assets/javascripts/webshims/shims/i18n/formcfg-ch-ZN.js +2 -2
  46. data/vendor/assets/javascripts/webshims/shims/i18n/formcfg-de.txt +2 -2
  47. data/vendor/assets/javascripts/webshims/shims/i18n/formcfg-el.js +2 -2
  48. data/vendor/assets/javascripts/webshims/shims/i18n/formcfg-en.txt +2 -2
  49. data/vendor/assets/javascripts/webshims/shims/i18n/formcfg-es.js +2 -2
  50. data/vendor/assets/javascripts/webshims/shims/i18n/formcfg-fr.js +2 -2
  51. data/vendor/assets/javascripts/webshims/shims/i18n/formcfg-he.js +2 -2
  52. data/vendor/assets/javascripts/webshims/shims/i18n/formcfg-hi.js +2 -2
  53. data/vendor/assets/javascripts/webshims/shims/i18n/formcfg-hu.js +2 -2
  54. data/vendor/assets/javascripts/webshims/shims/i18n/formcfg-it.js +2 -2
  55. data/vendor/assets/javascripts/webshims/shims/i18n/formcfg-ja.js +2 -2
  56. data/vendor/assets/javascripts/webshims/shims/i18n/formcfg-lt.js +7 -4
  57. data/vendor/assets/javascripts/webshims/shims/i18n/formcfg-nl.js +2 -2
  58. data/vendor/assets/javascripts/webshims/shims/i18n/formcfg-pl.js +106 -0
  59. data/vendor/assets/javascripts/webshims/shims/i18n/formcfg-pt-PT.js +2 -2
  60. data/vendor/assets/javascripts/webshims/shims/i18n/formcfg-ru.js +2 -2
  61. data/vendor/assets/javascripts/webshims/shims/i18n/formcfg-sv.js +2 -2
  62. data/vendor/assets/javascripts/webshims/shims/mediaelement-core.js +8 -12
  63. data/vendor/assets/javascripts/webshims/shims/mediaelement-jaris.js +114 -20
  64. data/vendor/assets/javascripts/webshims/shims/mediaelement-yt.js +132 -17
  65. data/vendor/assets/javascripts/webshims/shims/range-ui.js +1 -1
  66. data/vendor/assets/javascripts/webshims/shims/styles/scss/shim.scss +38 -3
  67. data/vendor/assets/javascripts/webshims/shims/styles/shim.css +42 -13
  68. data/vendor/assets/javascripts/webshims/shims/swf/JarisFLVPlayer.swf +0 -0
  69. data/vendor/assets/javascripts/webshims/shims/swfmini.js +1 -1
  70. data/vendor/assets/javascripts/webshims/shims/track-ui.js +4 -6
  71. metadata +3 -2
@@ -280,10 +280,19 @@ webshims.register('forms-picker', function($, webshims, window, document, undefi
280
280
  };
281
281
  });
282
282
 
283
+ //taken from jquery ui
283
284
  picker.getWeek = function(date){
284
- var onejan = new Date(date.getFullYear(),0,1);
285
- return Math.ceil((((date - onejan) / 86400000) + onejan.getDay()+1)/7);
285
+ var time;
286
+ var checkDate = new Date(date.getTime());
287
+
288
+ checkDate.setDate(checkDate.getDate() + 4 - (checkDate.getDay() || 7));
289
+
290
+ time = checkDate.getTime();
291
+ checkDate.setMonth(0);
292
+ checkDate.setDate(1);
293
+ return Math.floor(Math.round((time - checkDate) / 86400000) / 7) + 1;
286
294
  };
295
+
287
296
  picker.getYearList = function(value, data){
288
297
  var j, i, val, disabled, lis, prevDisabled, nextDisabled, classStr, classArray, start;
289
298
 
@@ -532,6 +541,9 @@ webshims.register('forms-picker', function($, webshims, window, document, undefi
532
541
  str.push('</tr><tr class="ws-row-'+ rowNum +'">');
533
542
  if(data.options.showWeek) {
534
543
  week++;
544
+ if(week > 52){
545
+ week = picker.getWeek(date);
546
+ }
535
547
  str.push('<td class="week-cell">'+ week +'</td>');
536
548
  }
537
549
  }
@@ -7,7 +7,7 @@
7
7
  },
8
8
  id = 0
9
9
  ;
10
- var geoOpts = $.webshims.cfg.geolocation || {};
10
+ var geoOpts = webshims.cfg.geolocation || {};
11
11
  navigator.geolocation = (function(){
12
12
  var pos;
13
13
  var api = {
@@ -165,4 +165,4 @@
165
165
  })();
166
166
 
167
167
  webshims.isReady('geolocation', true);
168
- })(jQuery);
168
+ })(webshims.$);
@@ -1,4 +1,4 @@
1
- jQuery.webshims.validityMessages.ar = {
1
+ webshims.validityMessages.ar = {
2
2
  "typeMismatch": {
3
3
  "email": "أدخِل رجاءً البريد الإلكتروني.",
4
4
  "url": "أدخِل رجاءً عنوان الموقع.",
@@ -30,7 +30,7 @@ jQuery.webshims.validityMessages.ar = {
30
30
  },
31
31
  "stepMismatch": "قيمة غير صحيحة"
32
32
  };
33
- jQuery.webshims.formcfg.ar = {
33
+ webshims.formcfg.ar = {
34
34
  numberFormat: {
35
35
  ".": ".",
36
36
  ",": ","
@@ -1,4 +1,4 @@
1
- jQuery.webshims.validityMessages['zh-CN'] = {
1
+ webshims.validityMessages['zh-CN'] = {
2
2
  "typeMismatch": {
3
3
  "email": "请输入电子邮件地址。",
4
4
  "url": "请输入一个 URL。",
@@ -30,7 +30,7 @@ jQuery.webshims.validityMessages['zh-CN'] = {
30
30
  },
31
31
  "stepMismatch": "值无效。"
32
32
  };
33
- jQuery.webshims.formcfg['zh-CN'] = {
33
+ webshims.formcfg['zh-CN'] = {
34
34
  numberFormat: {
35
35
  ".": ".",
36
36
  ",": ","
@@ -1,5 +1,5 @@
1
1
  //errormessages for de are already included in webshims core, this is only for information:
2
- jQuery.webshims.validityMessages.de = {
2
+ webshims.validityMessages.de = {
3
3
  "typeMismatch": {
4
4
  "defaultMessage": "{%value} ist in diesem Feld nicht zulässig.",
5
5
  "email": "{%value} ist keine zulässige E-Mail-Adresse",
@@ -35,7 +35,7 @@ jQuery.webshims.validityMessages.de = {
35
35
  "radio": "Bitte wählen Sie eine Option aus"
36
36
  }
37
37
  };
38
- jQuery.webshims.formcfg.de = {
38
+ webshims.formcfg.de = {
39
39
  numberFormat: {
40
40
  ",": ".",
41
41
  ".": ","
@@ -1,4 +1,4 @@
1
- jQuery.webshims.validityMessages.el = {
1
+ webshims.validityMessages.el = {
2
2
  "typeMismatch": {
3
3
  "email": "Παρακαλώ εισάγετε μια διεύθυνση email.",
4
4
  "url": "Παρακαλώ εισάγετε ένα URL.",
@@ -30,7 +30,7 @@ jQuery.webshims.validityMessages.el = {
30
30
  },
31
31
  "stepMismatch": "Μη έγκυρη τιμή."
32
32
  };
33
- jQuery.webshims.formcfg.el = {
33
+ webshims.formcfg.el = {
34
34
  numberFormat: {
35
35
  ".": ".",
36
36
  ",": ","
@@ -1,6 +1,6 @@
1
1
  //errormessages for en are already included in webshims core, this is only for information (by default en is equal to jQuery.webshims.validityMessages[""]):
2
2
 
3
- jQuery.webshims.validityMessages.en = {
3
+ webshims.validityMessages.en = {
4
4
  "typeMismatch": {
5
5
  "defaultMessage": "Please enter a valid value.",
6
6
  "email": "Please enter an email address.",
@@ -36,7 +36,7 @@ jQuery.webshims.validityMessages.en = {
36
36
  "radio": "Please select an option."
37
37
  }
38
38
  };
39
- jQuery.webshims.formcfg.en = {
39
+ webshims.formcfg.en = {
40
40
  "numberFormat": {
41
41
  ".": ".",
42
42
  ",": ","
@@ -1,4 +1,4 @@
1
- jQuery.webshims.validityMessages.es = {
1
+ webshims.validityMessages.es = {
2
2
  "typeMismatch": {
3
3
  "email": "Por favor, introduzca una dirección de correo.",
4
4
  "url": "Por favor, introduzca una URL.",
@@ -30,7 +30,7 @@ jQuery.webshims.validityMessages.es = {
30
30
  },
31
31
  "stepMismatch": "Valor no válido"
32
32
  };
33
- jQuery.webshims.formcfg.es = {
33
+ webshims.formcfg.es = {
34
34
  numberFormat: {
35
35
  ".": ".",
36
36
  ",": ","
@@ -1,4 +1,4 @@
1
- jQuery.webshims.validityMessages.fr = {
1
+ webshims.validityMessages.fr = {
2
2
  "typeMismatch": {
3
3
  "defaultMessage": "Veuillez saisir une valeur valide.",
4
4
  "email": "Veuillez saisir une adresse courriel valide.",
@@ -33,7 +33,7 @@ jQuery.webshims.validityMessages.fr = {
33
33
  },
34
34
  "stepMismatch": "Valeur incorrecte"
35
35
  };
36
- jQuery.webshims.formcfg.fr = {
36
+ webshims.formcfg.fr = {
37
37
  numberFormat: {
38
38
  ".": ".",
39
39
  ",": ","
@@ -1,4 +1,4 @@
1
- jQuery.webshims.validityMessages.he = {
1
+ webshims.validityMessages.he = {
2
2
  "typeMismatch": {
3
3
  "email": "נא להזין כתובת דוא״ל.",
4
4
  "url": "נא להזין כתובת.",
@@ -30,7 +30,7 @@ jQuery.webshims.validityMessages.he = {
30
30
  },
31
31
  "stepMismatch": "ערך לא חוקי."
32
32
  };
33
- jQuery.webshims.formcfg.he = {
33
+ webshims.formcfg.he = {
34
34
  numberFormat: {
35
35
  ".": ".",
36
36
  ",": ","
@@ -1,4 +1,4 @@
1
- jQuery.webshims.validityMessages.hi = {
1
+ webshims.validityMessages.hi = {
2
2
  "typeMismatch": {
3
3
  "email": "कृपया ई-मेल पता दर्ज करें.",
4
4
  "url": "कृपया URL लिखें.",
@@ -30,7 +30,7 @@ jQuery.webshims.validityMessages.hi = {
30
30
  },
31
31
  "stepMismatch": "अमान्य मान."
32
32
  };
33
- jQuery.webshims.formcfg.hi = {
33
+ webshims.formcfg.hi = {
34
34
  numberFormat: {
35
35
  ".": ".",
36
36
  ",": ","
@@ -1,4 +1,4 @@
1
- jQuery.webshims.validityMessages.hu = {
1
+ webshims.validityMessages.hu = {
2
2
  "typeMismatch": {
3
3
  "email": "Írjon be egy e-mail címet.",
4
4
  "url": "Írjon be egy URL-t.",
@@ -30,7 +30,7 @@ jQuery.webshims.validityMessages.hu = {
30
30
  },
31
31
  "stepMismatch": "Érvénytelen érték."
32
32
  };
33
- jQuery.webshims.formcfg.hu = {
33
+ webshims.formcfg.hu = {
34
34
  numberFormat: {
35
35
  ".": ".",
36
36
  ",": ","
@@ -1,4 +1,4 @@
1
- jQuery.webshims.validityMessages.it = {
1
+ webshims.validityMessages.it = {
2
2
  "typeMismatch": {
3
3
  "email": "Inserire un indirizzo e-mail",
4
4
  "url": "Inserire un URL",
@@ -30,7 +30,7 @@ jQuery.webshims.validityMessages.it = {
30
30
  },
31
31
  "stepMismatch": "Valore non valido."
32
32
  };
33
- jQuery.webshims.formcfg.it = {
33
+ webshims.formcfg.it = {
34
34
  numberFormat: {
35
35
  ".": ".",
36
36
  ",": ","
@@ -1,4 +1,4 @@
1
- jQuery.webshims.validityMessages.ja = {
1
+ webshims.validityMessages.ja = {
2
2
  "typeMismatch": {
3
3
  "email": "メールアドレスが正しくありません。",
4
4
  "url": "URL が正しくありません。",
@@ -30,7 +30,7 @@ jQuery.webshims.validityMessages.ja = {
30
30
  },
31
31
  "stepMismatch": "値が無効です。"
32
32
  };
33
- jQuery.webshims.formcfg.ja = {
33
+ webshims.formcfg.ja = {
34
34
  numberFormat: {
35
35
  ".": ".",
36
36
  ",": ","
@@ -1,6 +1,6 @@
1
1
  //errormessages for en are already included in webshims core, this is only for information (by default en is equal to jQuery.webshims.validityMessages[""]):
2
2
 
3
- jQuery.webshims.validityMessages.lt = {
3
+ webshims.validityMessages.lt = {
4
4
  "typeMismatch": {
5
5
  "defaultMessage": "Prašom įvesti teisingą reikšmę.",
6
6
  "email": "Prašom įvesti el. pašto adresą.",
@@ -36,10 +36,8 @@ jQuery.webshims.validityMessages.lt = {
36
36
  "radio": "Prašom pasirinkti vieną iš reikšmių."
37
37
  }
38
38
  };
39
- //for IE
40
- jQuery.webshims.validityMessages['lt-LT'] = jQuery.webshims.validityMessages.lt;
41
39
 
42
- jQuery.webshims.formcfg.lt = {
40
+ webshims.formcfg.lt = {
43
41
  numberFormat: {
44
42
  ".": ".",
45
43
  ",": ","
@@ -72,3 +70,8 @@ jQuery.webshims.formcfg.lt = {
72
70
  "yearSuffix": ""
73
71
  }
74
72
  };
73
+
74
+
75
+ //for IE
76
+ webshims.validityMessages['lt-LT'] = webshims.validityMessages.lt;
77
+ webshims.formcfg['lt-LT'] = webshims.formcfg.lt;
@@ -1,4 +1,4 @@
1
- jQuery.webshims.validityMessages.nl = {
1
+ webshims.validityMessages.nl = {
2
2
  "typeMismatch": {
3
3
  "email": "Voer een e-mailadres in.",
4
4
  "url": "Voer een URL in.",
@@ -30,7 +30,7 @@ jQuery.webshims.validityMessages.nl = {
30
30
  },
31
31
  "stepMismatch": "Ongeldige waarde."
32
32
  };
33
- jQuery.webshims.formcfg.nl = {
33
+ webshims.formcfg.nl = {
34
34
  numberFormat: {
35
35
  ".": ".",
36
36
  ",": ","
@@ -0,0 +1,106 @@
1
+ webshims.validityMessages.pl = {
2
+ "typeMismatch": {
3
+ "defaultMessage": "Wprowadź poprawną wartość.",
4
+ "email": "Wprowadź adres e-mail.",
5
+ "url": "Wprowadź adres URL.",
6
+ "number": "Wprowadź numer.",
7
+ "date": "Wprowadź datę.",
8
+ "time": "Wprowadź czas.",
9
+ "range": "Invalid input.",
10
+ "month": "Wprowadź prawidłową wartość.",
11
+ "datetime-local": "Wprowadź datę i czas."
12
+ },
13
+ "rangeUnderflow": {
14
+ "defaultMessage": "Wartość musi być większa lub równa {%min}.",
15
+ "date": "Wartość musi być większa lub równa {%min}.",
16
+ "time": "Wartość musi być większa lub równa {%min}.",
17
+ "datetime-local": "Wartość musi być większa lub równa {%min}.",
18
+ "month": "Wartość musi być większa lub równa {%min}."
19
+ },
20
+ "rangeOverflow": {
21
+ "defaultMessage": "Wartość musi być mniejsza lub równa {%max}.",
22
+ "date": "Wartość musi być mniejsza lub równa {%max}.",
23
+ "time": "Wartość musi być mniejsza lub równa {%max}.",
24
+ "datetime-local": "Wartość musi być mniejsza lub równa {%max}.",
25
+ "month": "Wartość musi być mniejsza lub równa {%max}."
26
+ },
27
+ "stepMismatch": "Nieprawidłowe dane.",
28
+ "tooLong": "Można wpisać maksymalnie {%maxlength} znaki(ów). Wpisano {%valueLen}.",
29
+ "patternMismatch": "Niewłaściwe dane. {%title}",
30
+ "valueMissing": {
31
+ "defaultMessage": "Proszę wypełnić pole.",
32
+ "checkbox": "Zaznacz to pole jeśli chcesz przejść dalej.",
33
+ "select": "Wybierz opcję..",
34
+ "radio": "Zaznacz opcję."
35
+ }
36
+ };
37
+ webshims.formcfg.pl = {
38
+ "numberFormat": {
39
+ ".": ".",
40
+ ",": ","
41
+ },
42
+ "numberSigns": ".-",
43
+ "dateSigns": "-",
44
+ "timeSigns": ":. ",
45
+ "dFormat": "-",
46
+ "patterns": {
47
+ "d": "yy-mm-dd"
48
+ },
49
+ "month": {
50
+ "currentText": "Bieżący miesiąc"
51
+ },
52
+ "week": {
53
+ "currentText": "Bieżący tydzień"
54
+ },
55
+ "date": {
56
+ "closeText": "Ok",
57
+ "clear": "Czyść",
58
+ "prevText": "Poprzedni",
59
+ "nextText": "Następny",
60
+ "currentText": "Dziś",
61
+ "monthNames": [
62
+ "Styczeń",
63
+ "Luty",
64
+ "Marzec",
65
+ "Kwieceń",
66
+ "Maj",
67
+ "Czerwiec",
68
+ "Lipiec",
69
+ "Sierpień",
70
+ "Wrzesień",
71
+ "Październik",
72
+ "Listopad",
73
+ "Grudzień"
74
+ ],
75
+ "monthNamesShort": [
76
+ "Sty",
77
+ "Lut",
78
+ "Mar",
79
+ "Kwi",
80
+ "Maj",
81
+ "Cze",
82
+ "Lip",
83
+ "Sie",
84
+ "Wrz",
85
+ "Paź",
86
+ "Lis",
87
+ "Gru"
88
+ ],
89
+ "dayNames": [
90
+ "Niedziela",
91
+ "Poniedziałek",
92
+ "Wtorek",
93
+ "Środa",
94
+ "Czwartek",
95
+ "Piątek",
96
+ "Sobota"
97
+ ],
98
+ "dayNamesShort": ["Nie", "Pon", "Wto", "Śro", "Czw", "Pią", "Sob"],
99
+ "dayNamesMin": ["Nd", "Pn", "Wt", "Śr", "Cz", "Pt", "So"],
100
+ "weekHeader": "Tdz",
101
+ "firstDay": 1,
102
+ "isRTL": false,
103
+ "showMonthAfterYear": true,
104
+ "yearSuffix": ""
105
+ }
106
+ };
@@ -1,4 +1,4 @@
1
- jQuery.webshims.validityMessages["pt-PT"] = {
1
+ webshims.validityMessages["pt-PT"] = {
2
2
  "typeMismatch": {
3
3
  "email": "Por favor escreva um endereço de correio.",
4
4
  "url": "Por favor escreva o URL.",
@@ -30,7 +30,7 @@ jQuery.webshims.validityMessages["pt-PT"] = {
30
30
  },
31
31
  "stepMismatch": "Valor inválido."
32
32
  };
33
- jQuery.webshims.formcfg["pt-PT"] = {
33
+ webshims.formcfg["pt-PT"] = {
34
34
  numberFormat: {
35
35
  ".": ".",
36
36
  ",": ","
@@ -1,4 +1,4 @@
1
- jQuery.webshims.validityMessages.ru = {
1
+ webshims.validityMessages.ru = {
2
2
  "typeMismatch": {
3
3
  "email": "Пожалуйста, введите адрес e-mail.",
4
4
  "url": "Пожалуйста, введите адрес веб-страницы (URL).",
@@ -30,7 +30,7 @@ jQuery.webshims.validityMessages.ru = {
30
30
  },
31
31
  "stepMismatch": "Неправильное значение."
32
32
  };
33
- jQuery.webshims.formcfg.ru = {
33
+ webshims.formcfg.ru = {
34
34
  numberFormat: {
35
35
  ".": ".",
36
36
  ",": ","
@@ -1,4 +1,4 @@
1
- jQuery.webshims.validityMessages.sv = {
1
+ webshims.validityMessages.sv = {
2
2
  "typeMismatch": {
3
3
  "email": "Fyll i en e-postadress.",
4
4
  "url": "Fyll i en URL.",
@@ -30,7 +30,7 @@ jQuery.webshims.validityMessages.sv = {
30
30
  },
31
31
  "stepMismatch": "Felaktig inmatning."
32
32
  };
33
- jQuery.webshims.formcfg.sv = {
33
+ webshims.formcfg.sv = {
34
34
  numberFormat: {
35
35
  ".": ".",
36
36
  ",": ","
@@ -1,5 +1,6 @@
1
- (function($, Modernizr, webshims){
1
+ (function(Modernizr, webshims){
2
2
  "use strict";
3
+ var $ = webshims.$;
3
4
  var hasNative = Modernizr.audio && Modernizr.video;
4
5
  var supportsLoop = false;
5
6
  var bugs = webshims.bugs;
@@ -103,6 +104,7 @@ webshims.register('mediaelement-core', function($, webshims, window, document, u
103
104
  hasSwf = swfmini.hasFlashPlayerVersion('9.0.115');
104
105
  $('html').addClass(hasSwf ? 'swf' : 'no-swf');
105
106
  var mediaelement = webshims.mediaelement;
107
+
106
108
  mediaelement.parseRtmp = function(data){
107
109
  var src = data.src.split('://');
108
110
  var paths = src[1].split('/');
@@ -272,7 +274,6 @@ webshims.register('mediaelement-core', function($, webshims, window, document, u
272
274
  var src = getSrcObj(mediaElem, nodeName);
273
275
 
274
276
  if(!src.src){
275
-
276
277
  $('source', mediaElem).each(function(){
277
278
  src = getSrcObj(this, nodeName);
278
279
  if(src.src){srces.push(src);}
@@ -287,18 +288,10 @@ webshims.register('mediaelement-core', function($, webshims, window, document, u
287
288
  srces = [srces];
288
289
  }
289
290
  srces.forEach(function(src){
290
- var source = document.createElement('source');
291
291
  if(typeof src == 'string'){
292
292
  src = {src: src};
293
293
  }
294
- source.setAttribute('src', src.src);
295
- if(src.type){
296
- source.setAttribute('type', src.type);
297
- }
298
- if(src.media){
299
- source.setAttribute('media', src.media);
300
- }
301
- mediaElem.append(source);
294
+ mediaElem.append($(document.createElement('source')).attr(src));
302
295
  });
303
296
 
304
297
  }
@@ -446,6 +439,9 @@ webshims.register('mediaelement-core', function($, webshims, window, document, u
446
439
 
447
440
  if(!_srces.length || !parent || parent.nodeType != 1 || stopParent.test(parent.nodeName || '')){return;}
448
441
  data = data || webshims.data(elem, 'mediaelement');
442
+ if(mediaelement.sortMedia){
443
+ _srces.sort(mediaelement.sortMedia);
444
+ }
449
445
  stepSources(elem, data, options.preferFlash || undefined, _srces);
450
446
  };
451
447
  mediaelement.selectSource = selectSource;
@@ -620,4 +616,4 @@ webshims.register('mediaelement-core', function($, webshims, window, document, u
620
616
  }
621
617
  webshims.ready('track', loadTrackUi);
622
618
  });
623
- })(jQuery, Modernizr, webshims);
619
+ })(Modernizr, webshims);