Skip to content

Commit

Permalink
source input is not conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
petitphp committed May 6, 2015
1 parent 29cb5d8 commit 3a1471b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/monthly.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,14 @@ function admin_scripts() { ?>
<script>
(function($) {
wp.hooks.addAction('facetwp/load/monthly', function($this, obj) {
$this.find('.type-monthly .facet-source').val(obj['source']);
$this.find('.facet-source').val(obj['source']);
$this.find('.type-monthly .facet-label-any').val(obj['label_any']);
$this.find('.type-monthly .facet-orderby').val(obj['orderby']);
$this.find('.type-monthly .facet-count').val(obj['count']);
});

wp.hooks.addFilter('facetwp/save/monthly', function($this, obj) {
obj['source'] = $this.find('.type-monthly .facet-source').val();
obj['source'] = $this.find('.facet-source').val();
obj['label_any'] = $this.find('.type-monthly .facet-label-any').val();
obj['orderby'] = $this.find('.type-monthly .facet-orderby').val();
obj['count'] = $this.find('.type-monthly .facet-count').val();
Expand Down

0 comments on commit 3a1471b

Please sign in to comment.