add semakin imut
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
// $(document).ready(function(){
|
||||
|
||||
// $(".js-data-example-ajax").select2({
|
||||
// ajax: {
|
||||
// url: 'https://api.github.com/search/repositories',
|
||||
// dataType: 'json',
|
||||
// type: "GET",
|
||||
// delay: 250,
|
||||
// data: function(params) {
|
||||
// return {
|
||||
// q: params.term
|
||||
// };
|
||||
// },
|
||||
// processResults: function(data) {
|
||||
// var res = data.items.map(function(item) {
|
||||
// return {
|
||||
// id: item.id,
|
||||
// text: item.name
|
||||
// };
|
||||
// });
|
||||
// return {
|
||||
// results: res
|
||||
// };
|
||||
// }
|
||||
// },
|
||||
|
||||
// });
|
||||
// });
|
||||
|
||||
|
||||
// $(document).ready(function(){
|
||||
// $('.selectjs').select2({
|
||||
// ajax: {
|
||||
// url: 'update_file.json',
|
||||
// data: function (params) {
|
||||
// var query = {
|
||||
// search: params.term,
|
||||
// type: 'GET'
|
||||
// }
|
||||
|
||||
// // Query parameters will be ?search=[term]&type=public
|
||||
// return query;
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
// });
|
||||
Reference in New Issue
Block a user