diff --git a/framework/yii/gii/assets/gii.js b/framework/yii/gii/assets/gii.js index ac701e0..519760d 100644 --- a/framework/yii/gii/assets/gii.js +++ b/framework/yii/gii/assets/gii.js @@ -16,14 +16,14 @@ yii.gii = (function ($) { var initStickyInputs = function () { $('.sticky:not(.error) input,select,textarea').each(function () { var value; - if (this.tagName == 'SELECT') { + if (this.tagName === 'SELECT') { value = this.options[this.selectedIndex].text; - } else if (this.tagName == 'TEXTAREA') { + } else if (this.tagName === 'TEXTAREA') { value = $(this).html(); } else { value = $(this).val(); } - if (value == '') { + if (value === '') { value = '[empty]'; } $(this).before('