PluginProbe
Prismatic / 2.4
Prismatic v2.4
trunk 1.3 1.4 1.5 1.6 1.6.1 1.7 1.8 1.9 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 2.9.1 3.0 3.1 3.1.1 3.2 3.2.1 All 40 releases
prismatic / js / scripts-settings.js

scripts-settings.js in Prismatic 2.4, at js/scripts-settings.js

23 lines 725 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* Prismatic - Admin JavaScript */
2
3 jQuery(document).ready(function($) {
4
5 $('.wp-admin .wrap form h2').prepend('<span class="fa fa-pad fa-cog"></span> ');
6
7 $('.prismatic-reset-options').on('click', function(e) {
8 e.preventDefault();
9 $('.prismatic-modal-dialog').dialog('destroy');
10 var link = this;
11 var button_names = {}
12 button_names[prismatic_settings.reset_true] = function() { window.location = link.href; }
13 button_names[prismatic_settings.reset_false] = function() { $(this).dialog('close'); }
14 $('<div class="prismatic-modal-dialog">'+ prismatic_settings.reset_message +'</div>').dialog({
15 title: prismatic_settings.reset_title,
16 buttons: button_names,
17 modal: true,
18 width: 350
19 });
20 });
21
22 });
23