Update Mediasearch Gallery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<fm:If value="{$$get.groupId}"><input type="hidden" name="groupId" id="groupId" value="{$$get.groupId}" /></fm:If> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Update the gallery page upon changing the Uploaded: dropdown menu | |
function updateMediaSearchGallery(){ | |
if($('#groupId').val()){ | |
if ($('#query').val()){ | |
var timeFrom = "/mediasearch?q=" + $('#query').val() + "&date=" + $('#date').val() + "&groupId=" + $('#groupId').val() + "&sort=" + $('#sort').val() + "&type=" + $('#fileType').val(); | |
}else{ | |
var timeFrom = "/mediasearch?&date=" + $('#date').val() + "&groupId=" + $('#groupId').val() + "&sort=" + $('#sort').val() + "&type=" + $('#fileType').val(); | |
} | |
}else{ | |
if ($('#query').val()){ | |
var timeFrom = "/mediasearch?q=" + $('#query').val() + "&date=" + $('#date').val() + "&groupId=" + $('#parentId').val() + "&sort=" + $('#sort').val() + "&type=" + $('#fileType').val(); | |
}else{ | |
var timeFrom = "/mediasearch?date=" + $('#date').val() + "&groupId=" + $('#parentId').val() + "&sort=" + $('#sort').val() + "&type=" + $('#fileType').val(); | |
} | |
} | |
window.location = timeFrom; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment