]> source.dussan.org Git - redmine.git/commitdiff
use ===/!== instead of ==/!= in application.js (#13811)
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 20 Apr 2013 08:07:41 +0000 (08:07 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 20 Apr 2013 08:07:41 +0000 (08:07 +0000)
Contributed by Adrian Wilkins.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11729 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/javascripts/application.js

index 85745376cc0503b3b8379c28cc5a67c078756ae7..8977df6effbcb029a0334175446e873677fe3b89 100644 (file)
@@ -19,7 +19,7 @@ function toggleCheckboxesBySelector(selector) {
 
 function showAndScrollTo(id, focus) {
   $('#'+id).show();
-  if (focus!=null) {
+  if (focus !== null) {
     $('#'+focus).focus();
   }
   $('html, body').animate({scrollTop: $('#'+id).offset().top}, 100);
@@ -352,7 +352,7 @@ function setPredecessorFieldsVisibility() {
 
 function showModal(id, width) {
   var el = $('#'+id).first();
-  if (el.length == 0 || el.is(':visible')) {return;}
+  if (el.length === 0 || el.is(':visible')) {return;}
   var title = el.find('h3.title').text();
   el.dialog({
     width: width,
@@ -552,7 +552,7 @@ function setupAjaxIndicator() {
 
   $('#ajax-indicator').bind('ajaxSend', function(event, xhr, settings) {
   
-    if ($('.ajax-loading').length == 0 && settings.contentType != 'application/octet-stream') {
+    if ($('.ajax-loading').length === 0 && settings.contentType != 'application/octet-stream') {
       $('#ajax-indicator').show();
     }
   });