Correct spacing before javascript operators

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2014-05-08 12:03:34 +02:00
parent 9a88a68e1f
commit 4ff140c5be
5 changed files with 15 additions and 16 deletions

View File

@ -582,10 +582,10 @@ AJAX.cache = {
* @return void
*/
navigate: function (index) {
if (typeof this.pages[index] === 'undefined'
|| typeof this.pages[index].content === 'undefined'
|| typeof this.pages[index].menu === 'undefined'
|| ! AJAX.cache.menus.get(this.pages[index].menu)
if (typeof this.pages[index] === 'undefined' ||
typeof this.pages[index].content === 'undefined' ||
typeof this.pages[index].menu === 'undefined' ||
! AJAX.cache.menus.get(this.pages[index].menu)
) {
PMA_ajaxShowMessage(
'<div class="error">' + PMA_messages.strInvalidPage + '</div>',

View File

@ -1731,8 +1731,8 @@ function PMA_makegrid(t, enableResize, enableReorder, enableVisib, enableGridEdi
});
$('html').click(function (e) {
// hide edit cell if the click is not fromDat edit area
if ($(e.target).parents().index($(g.cEdit)) == -1
&& ! $(e.target).parents('.ui-datepicker-header').length
if ($(e.target).parents().index($(g.cEdit)) == -1 &&
! $(e.target).parents('.ui-datepicker-header').length
) {
g.hideEditCell();
}
@ -1860,7 +1860,7 @@ function PMA_makegrid(t, enableResize, enableReorder, enableVisib, enableGridEdi
});
})
.mouseleave(function (e) {
g.showSortHint = false;
g.showSortHint = false;
g.showRemColHint = false;
$(t).find("th.draggable").tooltip("option", {
content: g.updateHint()

View File

@ -94,8 +94,8 @@
total_len += $($li2[i]).data('width');
// item fits or (it is the last item
// and it would fit if More got removed)
if (total_len < wmax
|| (i == $li2.length - 1 && total_len - submenu_w < wmax)
if (total_len < wmax ||
(i == $li2.length - 1 && total_len - submenu_w < wmax)
) {
$($li2[i]).insertBefore($submenu);
} else {

View File

@ -776,8 +776,8 @@ function Canvas_click(id)
for (key in contr[K]) {
for (key2 in contr[K][key]) {
for (key3 in contr[K][key][key2]) {
if (!document.getElementById("check_vis_" + key2).checked
|| !document.getElementById("check_vis_" + contr[K][key][key2][key3][0]).checked) {
if (! document.getElementById("check_vis_" + key2).checked ||
! document.getElementById("check_vis_" + contr[K][key][key2][key3][0]).checked) {
continue; // if hide
}
var x1_left = document.getElementById(key2).offsetLeft + 1;//document.getElementById(key2+"."+key3).offsetLeft;

View File

@ -620,11 +620,10 @@ function changeValueFieldType(elem, searchIndex)
}
var type = $(elem).val();
if (
'IN (...)' == type
|| 'NOT IN (...)' == type
|| 'BETWEEN' == type
|| 'NOT BETWEEN' == type
if ('IN (...)' == type ||
'NOT IN (...)' == type ||
'BETWEEN' == type ||
'NOT BETWEEN' == type
) {
$("#fieldID_" + searchIndex).attr('multiple', '');
} else {