Skip to content

Commit

Permalink
move from tomato to aggregator (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjaudiomv authored Sep 12, 2023
1 parent ec0840d commit 893f7bc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions crouton.php
Original file line number Diff line number Diff line change
Expand Up @@ -653,9 +653,9 @@ public function adminOptionsPage()
<input id="root_server" type="text" size="50" name="root_server" value="<?php echo $this->options['root_server']; ?>" /> <?php echo $connect; ?>
</li>
<li>
<input type="checkbox" id="use_tomato" name="use_tomato" value="1"/>
<label for="use_tomato">Use Tomato &#127813;</label>
<span title='<p>Tomato is a root server aggregator, it collects meeting data <br/>from all known root servers and pretends to be one large server</p><p>This can be useful to use if you want to display meetings outside <br/>of your server, for instance a statewide listing where the state <br/>covers multiple root servers<br/>Another good use case is if you want to display meetings by users<br/> location</p>' class="tooltip"></span>
<input type="checkbox" id="use_aggregator" name="use_aggregator" value="1"/>
<label for="use_aggregator">Use Aggregator &#127813;</label>
<span title='<p>The Aggregator collects meeting data <br/>from all known root servers and pretends to be one large server</p><p>This can be useful to use if you want to display meetings outside <br/>of your server, for instance a statewide listing where the state <br/>covers multiple root servers<br/>Another good use case is if you want to display meetings by users<br/> location</p>' class="tooltip"></span>
</li>
</ul>
</div>
Expand Down Expand Up @@ -1085,4 +1085,4 @@ public function getCroutonJsConfig($atts)
if (class_exists("Crouton")) {
$BMLTTabs_instance = new Crouton();
}
?>
?>
12 changes: 6 additions & 6 deletions js/bmlt_tabs_admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function numbersonly(myfield, e, dec)
};

jQuery(document).ready(function($) {
var tomato = "https://tomato.bmltenabled.org/main_server";
var aggregator = "https://aggregator.bmltenabled.org/main_server";
$("#accordion").accordion({
heightStyle: "content",
active: false,
Expand All @@ -64,22 +64,22 @@ jQuery(document).ready(function($) {
$(".ctrl_key").hide();
});
$(window).on("load", function () {
if($('#use_tomato').is(':checked')) {
if($('#use_aggregator').is(':checked')) {
$("#root_server").prop("readonly", true);
}
});
$('#use_tomato').click(function() {
$('#use_aggregator').click(function() {
if($(this).is(':checked')) {
$("#root_server").val(tomato);
$("#root_server").val(aggregator);
$("#root_server").prop("readonly", true);
} else {
$("#root_server").val("");
$("#root_server").prop("readonly", false);
}
});
var rootServerValue = $('#root_server').val();
if(~rootServerValue.indexOf(tomato)) {
$("#use_tomato").prop("checked", true);
if(~rootServerValue.indexOf(aggregator)) {
$("#use_aggregator").prop("checked", true);
}
$('.tooltip').tooltipster({
animation: 'grow',
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ https://demo.bmlt.app/crouton
* Special-Interest Dropdown. This is basically just a filter of the formats dropdown, but because there are so many formats, the formats dropdown is pretty unusable.
* View-By Language and View-By Special-Interest buttons. Like the view-by city option, but for these format codes.
* 'has_meeting_count' flag, adding a meeting count to the table without the use of an additional [meeting_count] shortcode.
* 'venue_type' added to the [bmlt_tabs] shortcode, to allow for easy filtering of meetings without needing a custom query.
* 'venue_type' added to the [bmlt_tabs] shortcode, to allow for easy filtering of meetings without needing a custom query.

= 3.15.3 =
* Fixed German translation for Friday.
Expand Down

0 comments on commit 893f7bc

Please sign in to comment.