mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-22 12:29:11 -04:00
and then thumbnails for all the other available themes. If you select one of the other available themes, it gives you a preview pane where you can look at either the main page or the site admin page with the new theme, then choose to activate it if you like it.
35 lines
931 B
JavaScript
35 lines
931 B
JavaScript
$(document).ready(function(){
|
|
// Add Superfish menu class
|
|
$("#gSiteAdminMenu ul.gMenu").addClass("sf-menu");
|
|
$("ul.gMenu").addClass("sf-menu");
|
|
|
|
// Superfish menu options
|
|
$('ul.sf-menu').superfish({
|
|
delay: 500,
|
|
animation: {
|
|
opacity:'show',
|
|
height:'show'
|
|
},
|
|
pathClass: 'current',
|
|
speed: 'fast'
|
|
});
|
|
|
|
$(".gBlock h2").addClass("gDraggable");
|
|
|
|
// Apply modal dialogs
|
|
var dialogLinks = $(".gDialogLink");
|
|
for (var i=0; i < dialogLinks.length; i++) {
|
|
$(dialogLinks[i]).bind("click", {element: dialogLinks[i]}, handleDialogEvent);
|
|
};
|
|
|
|
$("#gThemeDetailsForm").ajaxForm( {
|
|
dataType: "json",
|
|
success: function(body, result, set) {
|
|
if (body.result == "success") {
|
|
$("#gMessage").append("<span class='gSuccess'>" + body.message + "</span>");
|
|
} else {
|
|
$("#gMessage").append("<span class='gError'>" + body.message + "</span>");
|
|
}
|
|
}});
|
|
});
|