Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

content passed to jquery.toolbar.js is displayed as undefined? #38

Open
keerthica opened this issue Jul 23, 2014 · 0 comments
Open

content passed to jquery.toolbar.js is displayed as undefined? #38

keerthica opened this issue Jul 23, 2014 · 0 comments

Comments

@keerthica
Copy link

populateContent: function() {
var self = this;
var location = self.toolbar.find('.tool-items');
var content = $(self.options.content).clone().find('a').addClass('tool-item gradient');
location.html(content);
location.find('.tool-item').on('click', function(event) {
event.preventDefault();
self.$elem.trigger('toolbarItemClick', this);
});

},

the above code: $(self.options.content) getting displayed as undefined. we are passing values from our js below

allHeaders.each(function() {
var thisHeader = jQuery(this).attr("id");
var thisBody = jQuery("

");
jQuery(thisBody).append("");
jQuery(thisBody).append(""+jQuery("#no-filter-criteria").text()+"");
});

we are passing content like this
jQuery10(thisHeader).toolbar({
content: '#toolBar-'+ JSUtils.prototype.escapeDot(jQuery10(thisHeader).attr("id")),
position: 'bottom',
hideOnClick: true
});

NOTE: we are using jquery datatable and displaying values through JSON.

Kindly let us know why content passed to toolbar is displayed as undefined?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant