Skip to content

Commit

Permalink
Fix example of "Datalist (auto complete) - Dynamic" polyfill (#9065)
Browse files Browse the repository at this point in the history
* Update datalist-dynamic-en.hbs

Corrects the example code

* Update datalist_dynamic.js

Corrects code by updating AJAX URL with correct GitHub issue prefix (was "Plugin: ", now "Feature: ")

* Update datalist-dynamic-fr.hbs

Correct French example code
  • Loading branch information
k-w-1 committed Apr 1, 2021
1 parent f272881 commit 4876117
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/polyfills/datalist/datalist-dynamic-en.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ $document.on( "change", pluginSelector, function( event ) {
$( this ).trigger({
type: "ajax-fetch.wb",
fetch: {
url: encodeURI( "https://api.github.com/repos/wet-boew/wet-boew/issues?labels=Plugin: " + pluginName ),
url: encodeURI( "https://api.github.com/repos/wet-boew/wet-boew/issues?labels=Feature: " + pluginName ),
dataType: wb.ielt10 ? "jsonp" : "json",
jsonp: wb.ielt10 ? "callback" : null
}
Expand Down
2 changes: 1 addition & 1 deletion src/polyfills/datalist/datalist-dynamic-fr.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ $document.on( "change", pluginSelector, function( event ) {
type: "ajax-fetch.wb",
element: this,
fetch: {
url: encodeURI( "https://api.github.com/repos/wet-boew/wet-boew/issues?labels=Plugin: " + pluginName ),
url: encodeURI( "https://api.github.com/repos/wet-boew/wet-boew/issues?labels=Feature: " + pluginName ),
dataType: wb.ielt10 ? "jsonp" : "json",
jsonp: wb.ielt10 ? "callback" : null
}
Expand Down
2 changes: 1 addition & 1 deletion src/polyfills/datalist/demo/datalist_dynamic.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $document.on( "change", pluginSelector, function( event ) {
$( this ).trigger( {
type: "ajax-fetch.wb",
fetch: {
url: encodeURI( "https://api.github.com/repos/wet-boew/wet-boew/issues?labels=Plugin: " + componentName ),
url: encodeURI( "https://api.github.com/repos/wet-boew/wet-boew/issues?labels=Feature: " + componentName ),
dataType: wb.ielt10 ? "jsonp" : "json",
jsonp: wb.ielt10 ? "callback" : null
}
Expand Down

0 comments on commit 4876117

Please sign in to comment.