31st March, 04:18
Is there an official way to submit patches?
I have added the ability to define url as a function so as to dynamically determine the url for loading content.
Here's the change I made:
loadContent: function(url, data)
{
if(typeof data !== 'object') data = null;
//Added ++++
// Call url function passing in the target as the parameter if url is a function
if(typeof url == 'function') {
url = url.call(self, target);
}
// Call API method
self.beforeContentLoad.call(self);
// Load content using jQuery's load method
self.elements.content.load(url, data, function()
{
// Call API method
self.onContentLoad.call(self);
// Recreate title if enabled
if(self.options.content.title.text !== false) createTitle.call(self);
// Update tooltip position
self.updatePosition();
});
return self;
},
I have added the ability to define url as a function so as to dynamically determine the url for loading content.
Here's the change I made:
loadContent: function(url, data)
{
if(typeof data !== 'object') data = null;
//Added ++++
// Call url function passing in the target as the parameter if url is a function
if(typeof url == 'function') {
url = url.call(self, target);
}
// Call API method
self.beforeContentLoad.call(self);
// Load content using jQuery's load method
self.elements.content.load(url, data, function()
{
// Call API method
self.onContentLoad.call(self);
// Recreate title if enabled
if(self.options.content.title.text !== false) createTitle.call(self);
// Update tooltip position
self.updatePosition();
});
return self;
},