Commit 76a6b806 authored by longpanda's avatar longpanda
Browse files

fix plugson page language issue

parent 036b58ff
......@@ -107,8 +107,8 @@
var id = $(this).attr('id');
var value = $(this).val();
var intval;
if (id.length <= 16) {
if (typeof(id) == 'undefined' || id.length <= 16) {
return;
}
......@@ -146,7 +146,7 @@
var id = $(this).attr('id');
var checked = $(this).is(':checked');
if (id.length <= 14) {
if (typeof(id) == 'undefined' || id.length <= 14) {
return;
}
......@@ -279,7 +279,9 @@
$('input[type=text]').each(function (){
var id = $(this).attr('id');
if (typeof(id) == 'undefined') {
return;
}
if (id.startsWith('id_text_timeout_') || id.startsWith('id_text_autosel_')) {
$(this).change(OnInputTextChange);
}
......@@ -287,6 +289,9 @@
$('input[type=checkbox]').each(function (){
var id = $(this).attr('id');
if (typeof(id) == 'undefined') {
return;
}
if (id.startsWith('id_timeout_en_') || id.startsWith('id_autosel_en_')) {
$(this).click(OnCheckBoxChange);
}
......
......@@ -1182,7 +1182,7 @@
$('input[type=radio]').each(function(){
var id = $(this).attr('id');
if (id.startsWith('id_ctrl')) {
if (typeof(id) != 'undefined' && id.startsWith('id_ctrl')) {
$(this).change(VtoySaveCurrentPage);
}
});
......
......@@ -176,7 +176,7 @@
$('input[type=radio]').each(function(){
var id = $(this).attr('id');
if (id.startsWith('id_image_list_type')) {
if (typeof(id) != 'undefined' && id.startsWith('id_image_list_type')) {
$(this).change(VtoySaveCurrentPage);
}
});
......
......@@ -108,7 +108,7 @@
var value = $(this).val();
var intval;
if (id.length <= 16) {
if (typeof(id) == 'undefined' || id.length <= 16) {
return;
}
......@@ -146,7 +146,7 @@
var id = $(this).attr('id');
var checked = $(this).is(':checked');
if (id.length <= 14) {
if (typeof(id) == 'undefined' || id.length <= 14) {
return;
}
......@@ -280,6 +280,9 @@
$('input[type=text]').each(function (){
var id = $(this).attr('id');
if (typeof(id) == 'undefined') {
retunrn;
}
if (id.startsWith('id_text_timeout_') || id.startsWith('id_text_autosel_')) {
$(this).change(OnInputTextChange);
......
......@@ -299,7 +299,7 @@
$('input[type=radio]').each(function(){
var id = $(this).attr('id');
if (id.startsWith('id_theme_file')) {
if (typeof(id) != 'undefined' && id.startsWith('id_theme_file')) {
$(this).change(function() {
m_data_theme[current_tab_index].default_file =parseInt(id.substr(id.length - 1));
VtoySaveCurrentPage();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment