2 * JavaScript for ext-surfbar - member editing page
3 * --------------------------------------------------------------------
8 * --------------------------------------------------------------------
9 * Copyright (c) 2003 - 2009 by Roland Haeder
10 * Copyright (c) 2009 - 2012 by Mailer Developer Team
11 * For more information visit: http://mxchange.org
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
29 var limit = document.getElementById('limit');
30 var span = document.getElementById('span_limit');
31 var old_limit = $content[url_views_max];
33 function FocusLimitedNo () {
34 if ((limit.value > 0) && (limit.value != '-')) {
35 old_limit = limit.value;
37 limit.disabled = true;
38 limit.setAttribute('class', 'disabled');
39 limit.style.textAlign = 'center';
43 function FocusLimitedYes () {
44 limit.disabled = false;
45 limit.setAttribute('class', 'form_field');
46 limit.style.textAlign = 'left';
48 limit.value = old_limit;
55 function SubmitForm () {
56 if (limit.value == '-') {
62 function ResetForm () {
68 if ($content[limited] == true) {