some code standards fixes
This commit is contained in:
parent
59874a6ab9
commit
c3747a56e5
@ -153,7 +153,7 @@ $(document).ready(function() {
|
||||
$(document).ready(function() {
|
||||
$("#plugins").change(function() {
|
||||
var active_plugin = $("#plugins option:selected").val();
|
||||
var force_file = $("#force_file_" + active_plugin).val();
|
||||
var force_file = $("#force_file_" + active_plugin).val();
|
||||
if(force_file == "true") {
|
||||
$("#radio_view_as_text").prop('disabled', true);
|
||||
$("#radio_view_as_text").parent().fadeTo('fast', 0.4);
|
||||
|
||||
@ -832,8 +832,8 @@ function goToUrl(selObj, goToLocation)
|
||||
*/
|
||||
function refreshDragOption(e)
|
||||
{
|
||||
var elm = $('#' + e);
|
||||
if (elm.css('visibility') == 'visible') {
|
||||
var $elm = $('#' + e);
|
||||
if ($elm.css('visibility') == 'visible') {
|
||||
refreshLayout();
|
||||
TableDragInit();
|
||||
}
|
||||
@ -844,7 +844,7 @@ function refreshDragOption(e)
|
||||
*/
|
||||
function refreshLayout()
|
||||
{
|
||||
var elm = $('#pdflayout');
|
||||
var $elm = $('#pdflayout');
|
||||
var orientation = $('#orientation_opt').val();
|
||||
if ($('#paper_opt').length==1) {
|
||||
var paper = $('#paper_opt').val();
|
||||
@ -858,8 +858,8 @@ function refreshLayout()
|
||||
posa = 'y';
|
||||
posb = 'x';
|
||||
}
|
||||
elm.css('width', pdfPaperSize(paper, posa) + 'px');
|
||||
elm.css('height', pdfPaperSize(paper, posb) + 'px');
|
||||
$elm.css('width', pdfPaperSize(paper, posa) + 'px');
|
||||
$elm.css('height', pdfPaperSize(paper, posb) + 'px');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -867,15 +867,15 @@ function refreshLayout()
|
||||
*/
|
||||
function ToggleDragDrop(e)
|
||||
{
|
||||
var elm = $('#' + e);
|
||||
if (elm.css('visibility') == 'hidden') {
|
||||
var $elm = $('#' + e);
|
||||
if ($elm.css('visibility') == 'hidden') {
|
||||
PDFinit(); /* Defined in pdf_pages.php */
|
||||
elm.css('visibility', 'visible');
|
||||
elm.css('display', 'block');
|
||||
$elm.css('visibility', 'visible');
|
||||
$elm.css('display', 'block');
|
||||
$('#showwysiwyg').val('1');
|
||||
} else {
|
||||
elm.css('visibility', 'hidden');
|
||||
elm.css('display', 'none');
|
||||
$elm.css('visibility', 'hidden');
|
||||
$elm.css('display', 'none');
|
||||
$('#showwysiwyg').val('0');
|
||||
}
|
||||
}
|
||||
@ -886,11 +886,11 @@ function ToggleDragDrop(e)
|
||||
*/
|
||||
function dragPlace(no, axis, value)
|
||||
{
|
||||
var elm = $('#table_' + no);
|
||||
var $elm = $('#table_' + no);
|
||||
if (axis == 'x') {
|
||||
elm.css('left', value + 'px');
|
||||
$elm.css('left', value + 'px');
|
||||
} else {
|
||||
elm.css('top', value + 'px');
|
||||
$elm.css('top', value + 'px');
|
||||
}
|
||||
}
|
||||
|
||||
@ -2333,8 +2333,8 @@ $(document).ready(function() {
|
||||
.removeClass('odd even');
|
||||
|
||||
var $databases_count_object = $('#databases_count');
|
||||
var databases_count = parseInt($databases_count_object.text());
|
||||
$databases_count_object.text(++databases_count);
|
||||
var databases_count = parseInt($databases_count_object.text()) + 1;
|
||||
$databases_count_object.text(databases_count);
|
||||
//Refresh navigation frame as a new database has been added
|
||||
if (window.parent && window.parent.frame_navigation) {
|
||||
window.parent.frame_navigation.location.reload();
|
||||
@ -2372,9 +2372,9 @@ $(document).ready(function() {
|
||||
event.preventDefault();
|
||||
|
||||
/**
|
||||
* @var the_form Object referring to the change password form
|
||||
* @var $the_form Object referring to the change password form
|
||||
*/
|
||||
var the_form = $("#change_password_form");
|
||||
var $the_form = $("#change_password_form");
|
||||
|
||||
/**
|
||||
* @var this_value String containing the value of the submit button.
|
||||
@ -2384,9 +2384,9 @@ $(document).ready(function() {
|
||||
var this_value = $(this).val();
|
||||
|
||||
var $msgbox = PMA_ajaxShowMessage(PMA_messages['strProcessingRequest']);
|
||||
$(the_form).append('<input type="hidden" name="ajax_request" value="true" />');
|
||||
$the_form.append('<input type="hidden" name="ajax_request" value="true" />');
|
||||
|
||||
$.post($(the_form).attr('action'), $(the_form).serialize() + '&change_pw='+ this_value, function(data) {
|
||||
$.post($the_form.attr('action'), $the_form.serialize() + '&change_pw='+ this_value, function(data) {
|
||||
if (data.success == true) {
|
||||
$("#floating_menubar").after(data.sql_query);
|
||||
$("#change_password_dialog").hide().remove();
|
||||
@ -2859,16 +2859,16 @@ function menuResize()
|
||||
|
||||
// Calculate the total width used by all the shown tabs
|
||||
var total_len = more_shown ? submenu_w : 0;
|
||||
for (var i = 0; i < $li.length-1; i++) {
|
||||
var l = $li.length - 1;
|
||||
for (var i = 0; i < l; i++) {
|
||||
total_len += $($li[i]).outerWidth(true);
|
||||
}
|
||||
|
||||
// Now hide menu elements that don't fit into the menubar
|
||||
var i = $li.length-1;
|
||||
var hidden = false; // Whether we have hidden any tabs
|
||||
while (total_len >= wmax && --i >= 0) { // Process the tabs backwards
|
||||
while (total_len >= wmax && --l >= 0) { // Process the tabs backwards
|
||||
hidden = true;
|
||||
var el = $($li[i]);
|
||||
var el = $($li[l]);
|
||||
var el_width = el.outerWidth(true);
|
||||
el.data('width', el_width);
|
||||
if (! more_shown) {
|
||||
@ -2885,7 +2885,7 @@ function menuResize()
|
||||
// If we didn't hide any tabs, then there might be some space to show some
|
||||
if (! hidden) {
|
||||
// Show menu elements that do fit into the menubar
|
||||
for (var i = 0; i < $li2.length; i++) {
|
||||
for (var i = 0, l = $li2.length; i < l; i++) {
|
||||
total_len += $($li2[i]).data('width');
|
||||
// item fits or (it is the last item
|
||||
// and it would fit if More got removed)
|
||||
@ -3509,24 +3509,25 @@ function PMA_createqTip($elements, content, options)
|
||||
* Return value of a cell in a table.
|
||||
*/
|
||||
function PMA_getCellValue(td) {
|
||||
if ($(td).is('.null')) {
|
||||
var $td = $(td);
|
||||
if ($td.is('.null')) {
|
||||
return '';
|
||||
} else if (! $(td).is('.to_be_saved') && $(td).data('original_data')) {
|
||||
return $(td).data('original_data');
|
||||
} else if (! $td.is('.to_be_saved') && $td.data('original_data')) {
|
||||
return $td.data('original_data');
|
||||
} else {
|
||||
return $(td).text();
|
||||
return $td.text();
|
||||
}
|
||||
}
|
||||
|
||||
/* Loads a js file, an array may be passed as well */
|
||||
loadJavascript=function(file) {
|
||||
var head = $('head');
|
||||
var $head = $('head');
|
||||
if ($.isArray(file)) {
|
||||
for(var i=0, l=file.length; i<l; i++) {
|
||||
head.append('<script type="text/javascript" src="'+file[i]+'"></script>');
|
||||
$head.append('<script type="text/javascript" src="'+file[i]+'"></script>');
|
||||
}
|
||||
} else {
|
||||
head.append('<script type="text/javascript" src="'+file+'"></script>');
|
||||
$head.append('<script type="text/javascript" src="'+file+'"></script>');
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -251,11 +251,11 @@ function PMA_makegrid(t, enableResize, enableReorder, enableVisib, enableGridEdi
|
||||
var $firstRowCols = $(g.t).find('tr:first th.draggable:visible');
|
||||
var $resizeHandles = $(g.cRsz).find('div').removeClass('condition');
|
||||
$('.pma_table').find('thead th:first').removeClass('before-condition');
|
||||
for (var n = 0; n < $firstRowCols.length; n++) {
|
||||
for (var n = 0, l = $firstRowCols.length; n < l; n++) {
|
||||
var $col = $($firstRowCols[n]);
|
||||
$($resizeHandles[n]).css('left', $col.position().left + $col.outerWidth(true))
|
||||
.show();
|
||||
if ($($firstRowCols[n]).hasClass('condition')) {
|
||||
if ($col.hasClass('condition')) {
|
||||
$($resizeHandles[n]).addClass('condition');
|
||||
if (n > 0) {
|
||||
$($resizeHandles[n-1]).addClass('condition');
|
||||
@ -1044,7 +1044,7 @@ function PMA_makegrid(t, enableResize, enableReorder, enableVisib, enableGridEdi
|
||||
/**
|
||||
* @var where_clause Array containing where clause for updated fields
|
||||
*/
|
||||
var full_where_clause = Array();
|
||||
var full_where_clause = [];
|
||||
/**
|
||||
* @var is_unique Boolean, whether the rows in this table is unique or not
|
||||
*/
|
||||
@ -1052,9 +1052,9 @@ function PMA_makegrid(t, enableResize, enableReorder, enableVisib, enableGridEdi
|
||||
/**
|
||||
* multi edit variables
|
||||
*/
|
||||
var me_fields_name = Array();
|
||||
var me_fields = Array();
|
||||
var me_fields_null = Array();
|
||||
var me_fields_name = [];
|
||||
var me_fields = [];
|
||||
var me_fields_null = [];
|
||||
|
||||
// alert user if edited table is not unique
|
||||
if (!is_unique) {
|
||||
@ -1072,9 +1072,9 @@ function PMA_makegrid(t, enableResize, enableReorder, enableVisib, enableGridEdi
|
||||
* multi edit variables, for current row
|
||||
* @TODO array indices are still not correct, they should be md5 of field's name
|
||||
*/
|
||||
var fields_name = Array();
|
||||
var fields = Array();
|
||||
var fields_null = Array();
|
||||
var fields_name = [];
|
||||
var fields = [];
|
||||
var fields_null = [];
|
||||
|
||||
// loop each edited cell in a row
|
||||
$tr.find('.to_be_saved').each(function() {
|
||||
@ -1182,7 +1182,6 @@ function PMA_makegrid(t, enableResize, enableReorder, enableVisib, enableGridEdi
|
||||
|
||||
if (!g.saveCellsAtOnce) {
|
||||
$(g.cEdit).find('*').prop('disabled', true);
|
||||
var $editArea = $(g.cEdit).find('.edit_area');
|
||||
$(g.cEdit).find('.edit_box').addClass('edit_box_posting');
|
||||
} else {
|
||||
$('.save_edited').addClass('saving_edited_data')
|
||||
|
||||
@ -159,9 +159,9 @@ function PMA_setCookie(name, value, expires, path, domain, secure)
|
||||
*/
|
||||
function fast_filter(value)
|
||||
{
|
||||
lowercase_value = value.toLowerCase();
|
||||
$("#subel0 a[class!='tableicon']").each(function(idx,elem){
|
||||
$elem = $(elem);
|
||||
var lowercase_value = value.toLowerCase();
|
||||
$("#subel0 a[class!='tableicon']").each(function(idx, elem) {
|
||||
var $elem = $(elem);
|
||||
// .indexOf is case sensitive so convert to lowercase to compare
|
||||
if (value && $elem.html().toLowerCase().indexOf(lowercase_value) == -1) {
|
||||
$elem.parent().hide();
|
||||
|
||||
@ -8,9 +8,9 @@ function PMA_queryAutoCommit()
|
||||
|
||||
function PMA_querywindowCommit(tab)
|
||||
{
|
||||
var hiddenqueryform = $('#hiddenqueryform');
|
||||
hiddenqueryform.find("input[name='querydisplay_tab']").val(tab);
|
||||
hiddenqueryform.submit();
|
||||
var $hiddenqueryform = $('#hiddenqueryform');
|
||||
$hiddenqueryform.find("input[name='querydisplay_tab']").val(tab);
|
||||
$hiddenqueryform.submit();
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -21,26 +21,26 @@ function PMA_querywindowSetFocus()
|
||||
|
||||
function PMA_querywindowResize()
|
||||
{
|
||||
var el = $(this)[0];
|
||||
var querywindowcontainer = $('#querywindowcontainer');
|
||||
var $el = $(this)[0];
|
||||
var $querywindowcontainer = $('#querywindowcontainer');
|
||||
|
||||
// for Gecko
|
||||
if (typeof(el.sizeToContent) == 'function') {
|
||||
el.sizeToContent();
|
||||
if (typeof($el.sizeToContent) == 'function') {
|
||||
$el.sizeToContent();
|
||||
//self.scrollbars.visible = false;
|
||||
// give some more space ... to prevent 'fli(pp/ck)ing'
|
||||
el.resizeBy(10, 50);
|
||||
$el.resizeBy(10, 50);
|
||||
return;
|
||||
}
|
||||
|
||||
// for IE, Opera
|
||||
if (querywindowcontainer.length) {
|
||||
if ($querywindowcontainer.length) {
|
||||
// get content size
|
||||
var newWidth = querywindowcontainer.width();
|
||||
var newHeight = querywindowcontainer.height();
|
||||
var newWidth = $querywindowcontainer.width();
|
||||
var newHeight = $querywindowcontainer.height();
|
||||
|
||||
// set size to contentsize
|
||||
// plus some offset for scrollbars, borders, statusbar, menus ...
|
||||
el.resizeTo(newWidth + 45, newHeight + 75);
|
||||
$el.resizeTo(newWidth + 45, newHeight + 75);
|
||||
}
|
||||
}
|
||||
|
||||
@ -212,11 +212,11 @@ $(document).ready(function() {
|
||||
} else {
|
||||
$("#usersForm").remove();
|
||||
}
|
||||
var user_div = $('<div id="userFormDiv"></div>');
|
||||
var $user_div = $('<div id="userFormDiv"></div>');
|
||||
/*If the JSON string parsed correctly*/
|
||||
if (typeof priv_data.success != 'undefined') {
|
||||
if (priv_data.success == true) {
|
||||
user_div
|
||||
$user_div
|
||||
.html(priv_data.user_form)
|
||||
.insertAfter('#result_query');
|
||||
} else {
|
||||
@ -225,7 +225,7 @@ $(document).ready(function() {
|
||||
} else {
|
||||
/*parse the JSON string*/
|
||||
var obj = $.parseJSON(priv_data);
|
||||
user_div
|
||||
$user_div
|
||||
.html(obj.user_form)
|
||||
.insertAfter('#result_query');
|
||||
}
|
||||
@ -399,19 +399,21 @@ $(document).ready(function() {
|
||||
|
||||
PMA_ajaxShowMessage(PMA_messages['strProcessingRequest']);
|
||||
|
||||
$(this).append('<input type="hidden" name="ajax_request" value="true" />');
|
||||
var $t = $(this);
|
||||
|
||||
$t.append('<input type="hidden" name="ajax_request" value="true" />');
|
||||
|
||||
/**
|
||||
* @var curr_submit_name name of the current button being submitted
|
||||
*/
|
||||
var curr_submit_name = $(this).find('.tblFooters').find('input:submit').attr('name');
|
||||
var curr_submit_name = $t.find('.tblFooters').find('input:submit').attr('name');
|
||||
|
||||
/**
|
||||
* @var curr_submit_value value of the current button being submitted
|
||||
*/
|
||||
var curr_submit_value = $(this).find('.tblFooters').find('input:submit').val();
|
||||
var curr_submit_value = $t.find('.tblFooters').find('input:submit').val();
|
||||
|
||||
$.post($(this).attr('action'), $(this).serialize() + '&' + curr_submit_name + '=' + curr_submit_value, function(data) {
|
||||
$.post($t.attr('action'), $t.serialize() + '&' + curr_submit_name + '=' + curr_submit_value, function(data) {
|
||||
if(data.success == true) {
|
||||
|
||||
PMA_ajaxShowMessage(data.message);
|
||||
@ -425,9 +427,9 @@ $(document).ready(function() {
|
||||
.remove()
|
||||
.end()
|
||||
.after(data.sql_query);
|
||||
var notice_class = $("#floating_menubar").next("div").find('.notice');
|
||||
if($(notice_class).text() == '') {
|
||||
$(notice_class).remove();
|
||||
var $notice_class = $("#floating_menubar").next("div").find('.notice');
|
||||
if($notice_class.text() == '') {
|
||||
$notice_class.remove();
|
||||
}
|
||||
} //Show SQL Query that was executed
|
||||
|
||||
@ -590,7 +592,7 @@ $(document).ready(function() {
|
||||
* 'Drop the databases...'
|
||||
*/
|
||||
$('#checkbox_drop_users_db').click(function() {
|
||||
$this_checkbox = $(this);
|
||||
var $this_checkbox = $(this);
|
||||
if ($this_checkbox.is(':checked')) {
|
||||
var is_confirmed = confirm(PMA_messages['strDropDatabaseStrongWarning'] + '\n' + PMA_messages['strDoYouReally'] + '\nDROP DATABASE');
|
||||
if (! is_confirmed) {
|
||||
|
||||
@ -90,7 +90,7 @@ $(function() {
|
||||
$(document).click( function(event) {
|
||||
$('.openedPopup').each(function() {
|
||||
var $cnt = $(this);
|
||||
var pos = $(this).offset();
|
||||
var pos = $cnt.offset();
|
||||
|
||||
// Hide if the mouseclick is outside the popupcontent
|
||||
if (event.pageX < pos.left
|
||||
|
||||
@ -4,9 +4,17 @@ $(function() {
|
||||
$('div#statustabs_charting img#loadingMonitorIcon').remove();
|
||||
// Codemirror is loaded on demand so we might need to initialize it
|
||||
if (! codemirror_editor) {
|
||||
var elm = $('#sqlquery');
|
||||
if (elm.length > 0 && typeof CodeMirror != 'undefined') {
|
||||
codemirror_editor = CodeMirror.fromTextArea(elm[0], { lineNumbers: true, matchBrackets: true, indentUnit: 4, mode: "text/x-mysql" });
|
||||
var $elm = $('#sqlquery');
|
||||
if ($elm.length > 0 && typeof CodeMirror != 'undefined') {
|
||||
codemirror_editor = CodeMirror.fromTextArea(
|
||||
$elm[0],
|
||||
{
|
||||
lineNumbers: true,
|
||||
matchBrackets: true,
|
||||
indentUnit: 4,
|
||||
mode: "text/x-mysql"
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
// Timepicker is loaded on demand so we need to initialize datetime fields from the 'load log' dialog
|
||||
|
||||
@ -371,7 +371,7 @@ $(document).ready(function() {
|
||||
|
||||
/*Check whether atleast one row is selected for change*/
|
||||
if ($("#table_results tbody tr, #table_results tbody tr td").hasClass("marked")) {
|
||||
var div = $('<div id="change_row_dialog"></div>');
|
||||
var $div = $('<div id="change_row_dialog"></div>');
|
||||
|
||||
/**
|
||||
* @var button_options Object that stores the options passed to jQueryUI
|
||||
@ -389,7 +389,7 @@ $(document).ready(function() {
|
||||
$.get($form.attr('action'), $form.serialize()+"&ajax_request=true&submit_mult=row_edit", function(data) {
|
||||
//in the case of an error, show the error message returned.
|
||||
if (data.success != undefined && data.success == false) {
|
||||
div
|
||||
$div
|
||||
.append(data.error)
|
||||
.dialog({
|
||||
title: PMA_messages['strChangeTbl'],
|
||||
@ -402,7 +402,7 @@ $(document).ready(function() {
|
||||
buttons : button_options_error
|
||||
}); // end dialog options
|
||||
} else {
|
||||
div
|
||||
$div
|
||||
.append(data)
|
||||
.dialog({
|
||||
title: PMA_messages['strChangeTbl'],
|
||||
|
||||
@ -138,17 +138,15 @@ function isDate(val,tmstmp)
|
||||
*/
|
||||
function isTime(val)
|
||||
{
|
||||
var arrayVal=val.split(":");
|
||||
for(var a=0;a<arrayVal.length;a++)
|
||||
{
|
||||
if(arrayVal[a].length==1)
|
||||
arrayVal[a]=fractionReplace(arrayVal[a]);
|
||||
var arrayVal = val.split(":");
|
||||
for (var a = 0, l = arrayVal.length; a < l; a++) {
|
||||
if (arrayVal[a].length == 1) {
|
||||
arrayVal[a] = fractionReplace(arrayVal[a]);
|
||||
}
|
||||
}
|
||||
val=arrayVal.join(":");
|
||||
tmexp=new RegExp(/^(([0-1][0-9])|(2[0-3])):((0[0-9])|([1-5][0-9])):((0[0-9])|([1-5][0-9]))$/);
|
||||
if(!tmexp.test(val))
|
||||
return false;
|
||||
return true;
|
||||
val = arrayVal.join(":");
|
||||
var tmexp = new RegExp(/^(([0-1][0-9])|(2[0-3])):((0[0-9])|([1-5][0-9])):((0[0-9])|([1-5][0-9]))$/);
|
||||
return tmexp.test(val);
|
||||
}
|
||||
|
||||
function verificationsAfterFieldChange(urlField, multi_edit, theType)
|
||||
@ -458,7 +456,7 @@ $(document).ready(function() {
|
||||
$changed_element.data('hashed_field'),
|
||||
$changed_element.data('new_row_index'),
|
||||
$changed_element.closest('tr').find('span.column_type').html()
|
||||
);
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
@ -478,7 +476,7 @@ $(document).ready(function() {
|
||||
$this_element.closest('tr').find('input:hidden').first().val(),
|
||||
$changed_element.data('hashed_field'),
|
||||
'[multi_edit][' + $changed_element.data('new_row_index') + ']'
|
||||
);
|
||||
);
|
||||
});
|
||||
}
|
||||
}) // end each
|
||||
@ -502,18 +500,18 @@ $(document).ready(function() {
|
||||
else {
|
||||
|
||||
/**
|
||||
* @var last_checkbox Object reference to the last checkbox in #insertForm
|
||||
* @var $last_checkbox Object reference to the last checkbox in #insertForm
|
||||
*/
|
||||
var last_checkbox = $("#insertForm").children('input:checkbox:last');
|
||||
var $last_checkbox = $("#insertForm").children('input:checkbox:last');
|
||||
|
||||
/** name of {@link last_checkbox} */
|
||||
var last_checkbox_name = $(last_checkbox).attr('name');
|
||||
/** index of {@link last_checkbox} */
|
||||
/** name of {@link $last_checkbox} */
|
||||
var last_checkbox_name = $last_checkbox.attr('name');
|
||||
/** index of {@link $last_checkbox} */
|
||||
var last_checkbox_index = parseInt(last_checkbox_name.match(/\d+/));
|
||||
/** name of new {@link last_checkbox} */
|
||||
/** name of new {@link $last_checkbox} */
|
||||
var new_name = last_checkbox_name.replace(/\d+/,last_checkbox_index+1);
|
||||
|
||||
$(last_checkbox)
|
||||
$last_checkbox
|
||||
.clone()
|
||||
.attr({'id':new_name, 'name': new_name})
|
||||
.prop('checked', true)
|
||||
|
||||
@ -228,7 +228,7 @@ $(document).ready(function() {
|
||||
// Edit index
|
||||
var url = $(this).find("a").attr("href");
|
||||
if (url.substring(0, 16) == "tbl_indexes.php?") {
|
||||
url = url.substring(16, url.length );
|
||||
url = url.substring(16, url.length);
|
||||
}
|
||||
var title = PMA_messages['strEditIndex'];
|
||||
}
|
||||
|
||||
@ -175,8 +175,6 @@ $(document).ready(function() {
|
||||
var xType = $('#types_0').val();
|
||||
var yType = $('#types_1').val();
|
||||
var dataLabel = $('#dataLabel').val();
|
||||
var lastX;
|
||||
var lastY;
|
||||
var zoomRatio = 1;
|
||||
|
||||
|
||||
@ -316,6 +314,8 @@ $(document).ready(function() {
|
||||
var it = 4;
|
||||
var xChange = false;
|
||||
var yChange = false;
|
||||
var key;
|
||||
|
||||
for (key in selectedRow) {
|
||||
var oldVal = selectedRow[key];
|
||||
var newVal = ($('#fields_null_id_' + it).prop('checked')) ? null : $('#fieldID_' + it).val();
|
||||
@ -598,7 +598,7 @@ $(document).ready(function() {
|
||||
};
|
||||
$.post('tbl_zoom_select.php', post_params, function(data) {
|
||||
// Row is contained in data.row_info, now fill the displayResultForm with row values
|
||||
for (key in data.row_info) {
|
||||
for (var key in data.row_info) {
|
||||
$field = $('#fieldID_' + fid);
|
||||
$field_null = $('#fields_null_id_' + fid);
|
||||
if (data.row_info[key] == null) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user