2011-12-14, 04:08:47
Does anyone know the best way to alter the galleries javascript options ?
Without editing the gallery php files.
For example in my custom.js
Since the gallery code is called inline, how can we override it, can we stick a ready() at the end of the file to override it, or is there a better way to hook onto that in jquery, like a callback hook or a way to replace the fancybox() call ?
Without editing the gallery php files.
For example in my custom.js
Code:
$(document).ready(function() {
$("[rel=fancybox-mygallery]").fancybox({
titlePosition: 'over',
moreoptions....
});
}
Since the gallery code is called inline, how can we override it, can we stick a ready() at the end of the file to override it, or is there a better way to hook onto that in jquery, like a callback hook or a way to replace the fancybox() call ?