Commit 8a08601d authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

598: Implement CustomSearch as successor of user collections

Task-Url: https://pm.winseda.de/issues/598
parent 19ffe474
var home;
$(document).ready(function() {
home = new Home({});
home = new Home({
tagUrlPrefix: $("#custom-prefix").val()
});
home.loadWordcloud();
});
var Home = function(options) {
this.options = $.extend({
wordcloud : {
selector: ".wordcloud",
tagUrlPrefix: "",
animate: true,
animateDirection: "topDown",
height: 500,
......@@ -29,7 +32,7 @@ Home.prototype.handleTagTextClicked = function(tag) {
Home.prototype.loadWordcloud = function() {
var _this = this;
$.ajax({
url: __util.composeUrl("tags?analyzer=" + _this.options.analyzer + "&size=" + _this.options.tagcount),
url: __util.composeUrl(_this.options.tagUrlPrefix + "/tags?analyzer=" + _this.options.analyzer + "&size=" + _this.options.tagcount),
type: "GET",
dataType: "json",
success: function(data) { _this.fillWordcloud(data); },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment