| 1 |
/** |
| 2 |
* Plus WebP Admin |
| 3 |
* |
| 4 |
* @package Plus WebP Admin |
| 5 |
* @subpackage jquery.pluswebp.admin.js |
| 6 |
/* Copyright (c) 2019- Katsushi Kawamori (email : dodesyoswift312@gmail.com) |
| 7 |
This program is free software; you can redistribute it and/or modify |
| 8 |
it under the terms of the GNU General Public License as published by |
| 9 |
the Free Software Foundation; version 2 of the License. |
| 10 |
|
| 11 |
This program is distributed in the hope that it will be useful, |
| 12 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 |
GNU General Public License for more details. |
| 15 |
|
| 16 |
You should have received a copy of the GNU General Public License |
| 17 |
along with this program; if not, write to the Free Software |
| 18 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 19 |
*/ |
| 20 |
|
| 21 |
jQuery( |
| 22 |
function(){ |
| 23 |
|
| 24 |
/* Responsive Tabs */ |
| 25 |
jQuery( '#pluswebp-admin-tabs' ).responsiveTabs( |
| 26 |
{ |
| 27 |
startCollapsed: 'accordion' |
| 28 |
} |
| 29 |
); |
| 30 |
|
| 31 |
/* Control of the Enter key */ |
| 32 |
jQuery( 'input[type!="submit"][type!="button"]' ).keypress( |
| 33 |
function(e){ |
| 34 |
if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) { |
| 35 |
return false; |
| 36 |
} else { |
| 37 |
return true; |
| 38 |
} |
| 39 |
} |
| 40 |
); |
| 41 |
|
| 42 |
} |
| 43 |
); |
| 44 |
|