Browse Source

use ===/!== instead of ==/!= in application.js (#13811)

Contributed by Adrian Wilkins.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11729 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/2.4.0
Toshi MARUYAMA 11 years ago
parent
commit
b31d1329ca
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      public/javascripts/application.js

+ 3
- 3
public/javascripts/application.js View File



function showAndScrollTo(id, focus) { function showAndScrollTo(id, focus) {
$('#'+id).show(); $('#'+id).show();
if (focus!=null) {
if (focus !== null) {
$('#'+focus).focus(); $('#'+focus).focus();
} }
$('html, body').animate({scrollTop: $('#'+id).offset().top}, 100); $('html, body').animate({scrollTop: $('#'+id).offset().top}, 100);


function showModal(id, width) { function showModal(id, width) {
var el = $('#'+id).first(); 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(); var title = el.find('h3.title').text();
el.dialog({ el.dialog({
width: width, width: width,


$('#ajax-indicator').bind('ajaxSend', function(event, xhr, settings) { $('#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(); $('#ajax-indicator').show();
} }
}); });

Loading…
Cancel
Save