Skip to content

Commit

Permalink
исправление разных неточностей после релиза 2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fuze committed Apr 12, 2016
1 parent 412bde9 commit 803ede7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions system/controllers/admin/actions/index_chart_data.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ private function getData($source, $period){
filterFunc($source['key'], "(CURDATE() - INTERVAL {$period} DAY)", '>=')->
orderBy($source['key'], 'asc');

if(isset($source['filter'])){
foreach ($source['filter'] as $field_name => $value) {
$this->model->filterEqual($field_name, $value);
}
}

$this->model->group_by = $period < 300 ? "DAY({$source['key']})" : "MONTH({$source['key']})";

return $this->model->get($source['table'], false, false);
Expand Down
1 change: 1 addition & 0 deletions templates/default/controllers/geo/widget.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@
<script type="text/javascript">
$(function(){
$('#geo_window .list > select').chosen({no_results_text: '<?php echo LANG_LIST_EMPTY; ?>', width: '100%', search_placeholder: '<?php echo LANG_BEGIN_TYPING; ?>'});
$('#geo_window .list > select').first().trigger('change');
});
</script>
2 changes: 2 additions & 0 deletions templates/default/js/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ icms.modal = (function ($) {

this.setCallback = function(event, callback){
switch(event){
case 'open':
$.nmTop().callbacks.afterShowCont = callback; break;
case 'close':
$.nmTop().callbacks.beforeClose = callback; break;
}
Expand Down
2 changes: 1 addition & 1 deletion wysiwyg/redactor/wysiwyg.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function displayEditor($field_id, $content=''){
});
<?php if(!cmsCore::getInstance()->request->isAjax()){ ?>
$(window).on('resize', function (){
$('#<?php echo $dom_id; ?>').parent().width($('#f_<?php echo $dom_id; ?>').width());
$('#<?php echo $dom_id; ?>').width($('#f_<?php echo $dom_id; ?>').width());
}).triggerHandler('resize');
<?php } ?>
});
Expand Down

1 comment on commit 803ede7

@Loadir
Copy link
Contributor

@Loadir Loadir commented on 803ede7 Apr 13, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Спасибо, то что нужно.

Please sign in to comment.