Skip to content
Permalink
Browse files

- Fixed a bug with the custom `select2` field type that requests did …

…not go through with nested fields.

- Fixed a bug with the custom `select2` field type that showed the message "the results could not be loaded" while processing a Ajax requests.
  • Loading branch information...
michaeluno committed Feb 17, 2019
1 parent 1c9491a commit 87271bd47dbfec6d5e4581e860eb1784e7f34357
Showing with 621 additions and 348 deletions.
  1. +6 −4 example/library/select2-custom-field-type/Select2CustomFieldType.php
  2. +5 −1 example/library/select2-custom-field-type/changelog.txt
  3. +1 −1 example/library/select2-custom-field-type/select2/LICENSE.md
  4. +5 −5 example/library/select2-custom-field-type/select2/css/select2.css
  5. +1 −1 example/library/select2-custom-field-type/select2/css/select2.min.css
  6. +3 −0 example/library/select2-custom-field-type/select2/js/i18n/af.js
  7. +2 −2 example/library/select2-custom-field-type/select2/js/i18n/ar.js
  8. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/az.js
  9. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/bg.js
  10. +3 −0 example/library/select2-custom-field-type/select2/js/i18n/bs.js
  11. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/ca.js
  12. +2 −2 example/library/select2-custom-field-type/select2/js/i18n/cs.js
  13. +2 −2 example/library/select2-custom-field-type/select2/js/i18n/da.js
  14. +2 −2 example/library/select2-custom-field-type/select2/js/i18n/de.js
  15. +3 −0 example/library/select2-custom-field-type/select2/js/i18n/dsb.js
  16. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/el.js
  17. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/en.js
  18. +2 −2 example/library/select2-custom-field-type/select2/js/i18n/es.js
  19. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/et.js
  20. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/eu.js
  21. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/fa.js
  22. +2 −2 example/library/select2-custom-field-type/select2/js/i18n/fi.js
  23. +2 −2 example/library/select2-custom-field-type/select2/js/i18n/fr.js
  24. +2 −2 example/library/select2-custom-field-type/select2/js/i18n/gl.js
  25. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/he.js
  26. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/hi.js
  27. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/hr.js
  28. +3 −0 example/library/select2-custom-field-type/select2/js/i18n/hsb.js
  29. +2 −2 example/library/select2-custom-field-type/select2/js/i18n/hu.js
  30. +3 −0 example/library/select2-custom-field-type/select2/js/i18n/hy.js
  31. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/id.js
  32. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/is.js
  33. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/it.js
  34. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/ja.js
  35. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/km.js
  36. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/ko.js
  37. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/lt.js
  38. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/lv.js
  39. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/mk.js
  40. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/ms.js
  41. +2 −2 example/library/select2-custom-field-type/select2/js/i18n/nb.js
  42. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/nl.js
  43. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/pl.js
  44. +3 −0 example/library/select2-custom-field-type/select2/js/i18n/ps.js
  45. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/pt-BR.js
  46. +2 −2 example/library/select2-custom-field-type/select2/js/i18n/pt.js
  47. +2 −2 example/library/select2-custom-field-type/select2/js/i18n/ro.js
  48. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/ru.js
  49. +2 −2 example/library/select2-custom-field-type/select2/js/i18n/sk.js
  50. +3 −0 example/library/select2-custom-field-type/select2/js/i18n/sl.js
  51. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/sr-Cyrl.js
  52. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/sr.js
  53. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/sv.js
  54. +2 −2 example/library/select2-custom-field-type/select2/js/i18n/th.js
  55. +3 −0 example/library/select2-custom-field-type/select2/js/i18n/tk.js
  56. +2 −2 example/library/select2-custom-field-type/select2/js/i18n/tr.js
  57. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/uk.js
  58. +2 −2 example/library/select2-custom-field-type/select2/js/i18n/vi.js
  59. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/zh-CN.js
  60. +1 −1 example/library/select2-custom-field-type/select2/js/i18n/zh-TW.js
  61. +258 −135 example/library/select2-custom-field-type/select2/js/select2.full.js
  62. +1 −3 example/library/select2-custom-field-type/select2/js/select2.full.min.js
  63. +254 −132 example/library/select2-custom-field-type/select2/js/select2.js
  64. +1 −3 example/library/select2-custom-field-type/select2/js/select2.min.js
  65. +2 −0 readme.txt
@@ -75,7 +75,7 @@
* </ul>
*
* @since 3.8.7
* @version 0.0.3
* @version 0.0.4
* @supports IE8 or above. (uses JSON object)
* @requires Admin Page Framework 3.8.14
*/
@@ -754,9 +754,11 @@ private function _shouldProceedToAjaxRequest( $aRequest, $aFieldset ) {
if ( $aFieldset[ 'field_id' ] !== $aRequest[ 'field_id' ] ) {
return false;
}
if ( $aFieldset[ 'section_id' ] !== $aRequest[ 'section_id' ] ) {
return false;
}
// @deprecated 0.0.4 Bug fix - this is for nested repeated fields to process properly
// in meta boxes, if the section id is '_default', fieldset may not have that key
// if ( $aFieldset[ 'section_id' ] !== $aRequest[ 'section_id' ] ) {
// return false;
// }
return true;
@@ -1,5 +1,9 @@
# Change Log

= 0.0.4 - 2019/02/17 =
- Fixed a bug with that requests did not go through with nested fields.
- Fixed an issue that the message "the results could not be loaded" was displayed while during Ajax requests by updating the select2 library to 4.0.6-rc.1.

= 0.0.3 - 2017/01/11 =
- Changed the Ajax request url to `wp-admin/admin-ajax.php`.
- Changed the minimum required version of Admin Page Framework to 3.8.14.
@@ -10,4 +14,4 @@
- Made it compatible with Admin Page Framework 3.8.8.

= 0.0.1b =
- Released. Uses Select2 v4.0.3.
- Released. Uses Select2 v4.0.3.
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2012-2015 Kevin Brown, Igor Vaynberg, and Select2 contributors
Copyright (c) 2012-2017 Kevin Brown, Igor Vaynberg, and Select2 contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -118,12 +118,14 @@
.select2-hidden-accessible {
border: 0 !important;
clip: rect(0 0 0 0) !important;
-webkit-clip-path: inset(50%) !important;
clip-path: inset(50%) !important;
height: 1px !important;
margin: -1px !important;
overflow: hidden !important;
padding: 0 !important;
position: absolute !important;
width: 1px !important; }
width: 1px !important;
white-space: nowrap !important; }

.select2-container--default .select2-selection--single {
background-color: #fff;
@@ -420,9 +422,7 @@
color: #555; }

.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
float: right; }

.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
float: right;
margin-left: 5px;
margin-right: auto; }

Large diffs are not rendered by default.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 87271bd

Please sign in to comment.
You can’t perform that action at this time.