fix ambiguous equality operator, add semicolon
This commit is contained in:
parent
012a3dcab4
commit
6f891998f9
2 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@ $(function() {
|
|||
$('.form-group .has-error').first().next('input,select,textarea').focus();
|
||||
|
||||
$("section.content input").keypress(function(e) {
|
||||
if (e.which == 13) {
|
||||
if (e.which === 13) {
|
||||
var $submitButton = $('input#submit, button#submit');
|
||||
if ($submitButton.size() > 0) {
|
||||
$submitButton[0].submit();
|
||||
|
@ -33,5 +33,5 @@ $(function() {
|
|||
$(this).find('.modal-body #delete-doc-title').text(title);
|
||||
$(this).find('.modal-body #delete-doc-url').text(url);
|
||||
$(this).find('.modal-footer input#docId').val(docId);
|
||||
})
|
||||
});
|
||||
});
|
||||
|
|
|
@ -112,7 +112,7 @@ $.fn.suggestor = function(setting) {
|
|||
|
||||
|
||||
createAutoCompleteList: function(obj) {
|
||||
if(obj.response.status != 0) {
|
||||
if(obj.response.status !== 0) {
|
||||
$boxElement.css("display","none");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue