PluginProbe ʕ •ᴥ•ʔ
Easy HTTPS Redirection (SSL) / 1.9.2
Easy HTTPS Redirection (SSL) v1.9.2
trunk 1.5 1.6 1.8 1.9.1 1.9.2 2.0.0 2.0.1
https-redirection / js / script.js
https-redirection / js Last commit date
script.js 6 years ago
script.js
21 lines
1 (function ($) {
2 $(document).ready(function () {
3 /* add notice about changing in the settings page */
4 $(document).on('click', '.rewrite_add_item', function () {
5 $(this).each(function () {
6 if ($(this).prev().val() != '') {
7 $(this).next().hide();
8 $(this).parents('.rewrite_new_item').removeClass('rewrite_new_item').clone().addClass('rewrite_new_item').appendTo($(this).parents("td")).find('input').val('');
9 $(this).addClass('rewrite_delete_item').removeClass('rewrite_add_item');
10 } else {
11 $(this).next().show();
12 }
13 });
14 });
15 $(document).on('click', '.rewrite_delete_item', function () {
16 $(this).each(function () {
17 $(this).parent().remove();
18 });
19 });
20 });
21 })(jQuery);