Skip to content

Commit

Permalink
1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Sep 6, 2017
1 parent 554cf50 commit 794d048
Show file tree
Hide file tree
Showing 8 changed files with 1,552 additions and 613 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/phone"
,"version": "1.0.3"
,"version": "1.0.4"
,"description": "A telephone numbers handling library for my Magento 2 extensions."
,"type": "magento2-module"
,"homepage": "https://github.com/mage2pro/phone"
Expand Down
62 changes: 0 additions & 62 deletions view/base/web/lib/css/demo.css

This file was deleted.

980 changes: 979 additions & 1 deletion view/base/web/lib/css/main.css

Large diffs are not rendered by default.

Binary file modified view/base/web/lib/img/flags.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified view/base/web/lib/img/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
324 changes: 177 additions & 147 deletions view/base/web/lib/js/main.js

Large diffs are not rendered by default.

748 changes: 371 additions & 377 deletions view/base/web/lib/js/utils.js

Large diffs are not rendered by default.

49 changes: 24 additions & 25 deletions view/base/web/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,27 @@ define([
* @param {String[]} c.countries
* @param {String} c.utils
*/
function(c) {
ko.bindingHandlers['df-phone'] = {
init: function(e, accessor) {
var config = accessor();
var options = _.extend({
geoIpLookup: function(callback) {
$.get('//ipinfo.io', function(){}, 'jsonp').always(function(resp) {
var countryCode = (resp && resp.country) ? resp.country : '';
callback(countryCode);
});
}
,initialCountry: 'auto'
,nationalMode: false
,onlyCountries: c.countries
,preferredCountries: []
,separateDialCode: false
,utilsScript: c.utils
}, config.options);
var $e = $(e);
$e.intlTelInput(options);
$e.blur();
ko.utils.registerEventHandler(e, 'change', function() {config.storage(this.value);});
}
};
});});
function(c) {ko.bindingHandlers['df-phone'] = {
init: function(e, accessor) {
var config = accessor();
var options = _.extend({
geoIpLookup: function(callback) {
$.get('//ipinfo.io', function(){}, 'jsonp').always(function(resp) {
var countryCode = (resp && resp.country) ? resp.country : '';
callback(countryCode);
});
}
,initialCountry: 'auto'
,nationalMode: false
,onlyCountries: c.countries
,preferredCountries: []
,separateDialCode: false
,utilsScript: c.utils
}, config.options);
var $e = $(e);
$e.intlTelInput(options);
$e.blur();
ko.utils.registerEventHandler(e, 'change', function() {config.storage(this.value);});
//config.storage('+55 21 3139-8011');
}
};});});

0 comments on commit 794d048

Please sign in to comment.