PluginProbe
Simple Ticker / 2.07
Simple Ticker v2.07
trunk 1.0 1.01 1.02 1.03 1.04 1.05 1.06 1.07 2.00 2.01 2.02 2.03 2.04 2.05 2.06 2.07 2.08 2.09 2.10 2.11 3.00 3.01 3.02 3.03 All 33 releases
simple-ticker / js / jquery.simpleticker.js

jquery.simpleticker.js in Simple Ticker 2.07, at js/jquery.simpleticker.js

37 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Simple Ticker
3 *
4 * @package Simple Ticker
5 * @subpackage jquery.simpleticker.js
6 /* Copyright (c) 2016- Katsushi Kawamori (email : [email protected])
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 jQuery(function(){
21
22 /* Responsive Tabs */
23 jQuery('#simpleticker-admin-tabs').responsiveTabs({
24 startCollapsed: 'accordion'
25 });
26
27 /* Control of the Enter key */
28 jQuery('input[type!="submit"][type!="button"]').keypress(function(e){
29 if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) {
30 return false;
31 }else{
32 return true;
33 }
34 });
35
36 });
37