|
|
|
@ -488,13 +488,21 @@ if (EXPO.company){ |
|
|
|
$(function () { |
|
|
|
$(function () { |
|
|
|
var $editables = $('.'+self.opt.editableClass), |
|
|
|
var $editables = $('.'+self.opt.editableClass), |
|
|
|
$country = $('#'+self.opt.selectBox[0].id), |
|
|
|
$country = $('#'+self.opt.selectBox[0].id), |
|
|
|
$city = $('#'+self.opt.selectBox[1].id); |
|
|
|
$city = $('#'+self.opt.selectBox[1].id), |
|
|
|
|
|
|
|
$theme = $('#'+self.opt.selectBox[3].id); |
|
|
|
//start of document.ready
|
|
|
|
//start of document.ready
|
|
|
|
$waiter = $('#wait-ajax').css({'z-index': '8012'}); |
|
|
|
$waiter = $('#wait-ajax').css({'z-index': '8012'}); |
|
|
|
/** |
|
|
|
/** |
|
|
|
* <selectbox> styling with 3-rd party libs |
|
|
|
* <selectbox> styling with 3-rd party libs |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* company theme multiple select |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
$theme.select2({ |
|
|
|
|
|
|
|
width: 'element', |
|
|
|
|
|
|
|
placeholder: self.opt.selectBox[3].placeHolder, |
|
|
|
|
|
|
|
maximumSelectionSize: 3 |
|
|
|
|
|
|
|
}); |
|
|
|
/** |
|
|
|
/** |
|
|
|
* select country |
|
|
|
* select country |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@ -525,6 +533,7 @@ if (EXPO.company){ |
|
|
|
if($country.val() == 0 || $country.val() == ''){ |
|
|
|
if($country.val() == 0 || $country.val() == ''){ |
|
|
|
$city.prop('disabled', true); |
|
|
|
$city.prop('disabled', true); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$city.select2({ |
|
|
|
$city.select2({ |
|
|
|
placeholder: self.opt.selectBox[1].placeHolder, |
|
|
|
placeholder: self.opt.selectBox[1].placeHolder, |
|
|
|
width: 'element', |
|
|
|
width: 'element', |
|
|
|
|