Skip to content

Commit

Permalink
location selector div improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
appzio committed Sep 20, 2018
1 parent b53d2b0 commit 4869244
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions Components/AppzioUiKit/Divs/uiKitLocationSelectorDiv.php
Expand Up @@ -48,12 +48,12 @@ public function uiKitLocationSelectorDiv(array $params = array()){
$content[] = $this->getComponentFormFieldList($cities,array(
'variable' => 'city_selected',
'value' => $city
),['font-size' => 13]);
),['font-size' => 13,'width' => '80%']);
} else {
$content[] = $this->getComponentFormFieldList($countries,array(
'variable' => 'country_selected',
'value' => $country
),['font-size' => 13]);
),['font-size' => 13,'width' => '80%']);
}


Expand All @@ -77,14 +77,18 @@ public function uiKitLocationSelectorDiv(array $params = array()){
'background' => 'blur',
'tap_to_close' => 1,
'transition' => 'none',
'delay' => '0.5',
'layout' => $layout
);

$divparam2 = array(
'transition' => 'none',
'layout' => $layout
);

if(!$cities) {
$cols[] = $this->getComponentText('{#select#}', array(
'onclick' => [
$this->getOnclickShowDiv('loader'),
$this->getOnclickShowDiv('loader',$divparam2),
$this->getOnclickSubmit('selectcountry',['sync_open' => 1]),
$this->getOnclickHideDiv('location_selector', ['delay' => '0.5']),
$this->getOnclickShowDiv('location_selector', $divparam),
Expand All @@ -102,6 +106,8 @@ public function uiKitLocationSelectorDiv(array $params = array()){
);
}

$content[] = $this->getComponentSpacer(20);

$content[] = $this->getComponentRow($cols,array(),array(
'text-align' => 'center'
));
Expand Down
2 changes: 1 addition & 1 deletion Components/AppzioUiKit/Styles/divs.json
@@ -1,7 +1,7 @@
{

"uikit_div_location_selector": {
"height" : "350",
"height" : "450",
"background-color": "#ffffff",
"shadow-color": "#DDE2DE",
"shadow-radius": "1",
Expand Down

0 comments on commit 4869244

Please sign in to comment.