@@ -19,7 +19,7 function toggleCheckboxesBySelector(selector) { | |||
|
19 | 19 | |
|
20 | 20 | function showAndScrollTo(id, focus) { |
|
21 | 21 | $('#'+id).show(); |
|
22 | if (focus!=null) { | |
|
22 | if (focus !== null) { | |
|
23 | 23 | $('#'+focus).focus(); |
|
24 | 24 | } |
|
25 | 25 | $('html, body').animate({scrollTop: $('#'+id).offset().top}, 100); |
@@ -352,7 +352,7 function setPredecessorFieldsVisibility() { | |||
|
352 | 352 | |
|
353 | 353 | function showModal(id, width) { |
|
354 | 354 | var el = $('#'+id).first(); |
|
355 | if (el.length == 0 || el.is(':visible')) {return;} | |
|
355 | if (el.length === 0 || el.is(':visible')) {return;} | |
|
356 | 356 | var title = el.find('h3.title').text(); |
|
357 | 357 | el.dialog({ |
|
358 | 358 | width: width, |
@@ -552,7 +552,7 function setupAjaxIndicator() { | |||
|
552 | 552 | |
|
553 | 553 | $('#ajax-indicator').bind('ajaxSend', function(event, xhr, settings) { |
|
554 | 554 | |
|
555 | if ($('.ajax-loading').length == 0 && settings.contentType != 'application/octet-stream') { | |
|
555 | if ($('.ajax-loading').length === 0 && settings.contentType != 'application/octet-stream') { | |
|
556 | 556 | $('#ajax-indicator').show(); |
|
557 | 557 | } |
|
558 | 558 | }); |
General Comments 0
You need to be logged in to leave comments.
Login now