a4e230dcce
git-svn-id: https://plugins.svn.wordpress.org/prismatic/trunk@1521267 b8457f37-d9ea-0310-8a92-e5e31aec5664
23 lines
725 B
JavaScript
23 lines
725 B
JavaScript
/* Prismatic - Admin JavaScript */
|
|
|
|
jQuery(document).ready(function($) {
|
|
|
|
$('.wp-admin .wrap form h2').prepend('<span class="fa fa-pad fa-cog"></span> ');
|
|
|
|
$('.prismatic-reset-options').on('click', function(e) {
|
|
e.preventDefault();
|
|
$('.prismatic-modal-dialog').dialog('destroy');
|
|
var link = this;
|
|
var button_names = {}
|
|
button_names[prismatic_settings.reset_true] = function() { window.location = link.href; }
|
|
button_names[prismatic_settings.reset_false] = function() { $(this).dialog('close'); }
|
|
$('<div class="prismatic-modal-dialog">'+ prismatic_settings.reset_message +'</div>').dialog({
|
|
title: prismatic_settings.reset_title,
|
|
buttons: button_names,
|
|
modal: true,
|
|
width: 350
|
|
});
|
|
});
|
|
|
|
});
|