Files
@ 6e11d567188a
Branch filter:
Location: SlatePermutate/scripts/uiTabsKeyboard.js - annotation
6e11d567188a
1.5 KiB
text/javascript
Add support for manually specifying the base_uri.
This is necessary for me to continue developing on my messed up mpm_peruser
installation of slate_permutate since my apache's idea of its hostname is
wrong.
This is necessary for me to continue developing on my messed up mpm_peruser
installation of slate_permutate since my apache's idea of its hostname is
wrong.
1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 a20b78145ef5 a20b78145ef5 a20b78145ef5 a20b78145ef5 a20b78145ef5 a20b78145ef5 a20b78145ef5 a20b78145ef5 a20b78145ef5 a20b78145ef5 a20b78145ef5 a20b78145ef5 a20b78145ef5 a20b78145ef5 a20b78145ef5 a20b78145ef5 a20b78145ef5 a20b78145ef5 a20b78145ef5 a20b78145ef5 a20b78145ef5 a20b78145ef5 a20b78145ef5 a20b78145ef5 a20b78145ef5 a20b78145ef5 a20b78145ef5 a20b78145ef5 a20b78145ef5 | /*
* Copyright 2010 Nathan Gelderloos, Ethan Zonca, Nathan Phillip Brink
*
* This file is part of SlatePermutate.
*
* SlatePermutate is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* SlatePermutate is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with SlatePermutate. If not, see <http://www.gnu.org/licenses/>.
*/
jQuery(document).ready( function() {
jQuery(document).keydown(function(e) {
var direction = null;
// handle cursor keys
if (e.keyCode == 37) {
// slide left
direction = 'prev';
} else if (e.keyCode == 39) {
// slide right
direction = 'next';
}
if (direction != null) {
var totaltabs = jQuery('#tabs').tabs('length'); //gettting the total # of tabs
var selected = jQuery('#tabs').tabs('option', 'selected');//getting the currently selected tab
if (direction == 'next') {
if (selected <= totaltabs - 1)
jQuery('#tabs').tabs('select',selected + 1)
}
else {
if (selected != 0)
jQuery('#tabs').tabs('select',selected - 1)
}
}
});
});
|