fixed more indentation in find.js

This commit is contained in:
Devin Howard 2013-02-21 20:52:46 -05:00
parent e670861f3e
commit 28170035b0

View file

@ -182,8 +182,6 @@ function clearFoundData() {
Mconsole.plot();
}
/**
* Define all the dynamic interactions for the FIND/FILTER using Jquery
*/
@ -200,8 +198,6 @@ $(document).ready(function() {
});
// this is where interactions within the find box begin
//
//on keyup, start the countdown
$('#topic_by_name_input').typing({
start: function (event, $elem) {
@ -255,7 +251,9 @@ $(document).ready(function() {
//do nothing
}
if (topicName == "") { clearFoundData(); }
if (topicName == "") {
clearFoundData();
}
},
delay: 2000
});
@ -271,7 +269,6 @@ $(document).ready(function() {
$('.find').css('display','none');
$('.find_topic_by_name').css('display','block');
$('#topic_by_name_input').focus();
}
else if ( secondVal == 'selected' ) {
if ( $("#sideOptionFind .select_type").val() != "name") {
@ -378,7 +375,6 @@ $(document).ready(function() {
secondNewVal = $("#inCommons").attr('checked');
// only have the autocomplete enabled if they are searching in the commons
if (firstNewVal == "checked" && secondNewVal == "checked") {
setTimeout(function(){onCanvasSearch(null,data.item.id,null);},0);
$('#topicsByMap').val(data.item.id);
@ -407,7 +403,7 @@ $(document).ready(function() {
$('.find_map_by_name #map_by_name_input').val('');
}
else if ( thirdVal == 'selected' ) {
//nothing
}
});
@ -425,7 +421,6 @@ $(document).ready(function() {
secondNewVal = $("#inCommons").attr('checked');
// only have the autocomplete enabled if they are searching in the commons
if (firstNewVal == "checked" && secondNewVal == "checked"){
setTimeout(function(){onCanvasSearch(null,null,data.item.id.toString());},0);
$('#topicsByUser').val(data.item.id);
@ -448,7 +443,7 @@ $(document).ready(function() {
}
}
else if ( secondVal == 'selected' ) {
//nothing
}
else if ( thirdVal == 'selected' ) {
if (data.item.id != undefined) {
@ -467,7 +462,6 @@ $(document).ready(function() {
obj = document.getElementById('container');
var switchAll = $(this).attr('id');
if ( switchAll === "showAll" || switchAll === "hideAll") {
if (switchAll == "showAll") {
showAll();