From fca2915242664ef0ca1b16194c7784422cbdbb5b Mon Sep 17 00:00:00 2001 From: hexstudy Date: Thu, 3 Mar 2016 22:21:10 +0000 Subject: [PATCH] git-svn-id: https://msi/svn/firstRepo/WebClient/branches/Manut_3.0.1@73 0f545695-f87b-41b6-9a03-7f16563b5454 --- js/modules/search/search.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/modules/search/search.js b/js/modules/search/search.js index 03e339e..7e1734f 100644 --- a/js/modules/search/search.js +++ b/js/modules/search/search.js @@ -63,7 +63,8 @@ define(['jquery', 'underscore', 'backbone','text!modules/search/searchViewTempla this.$el.append(this.template()); this.$el.append(this.footer.$el); } - this.$el.find('#nResult').val(Profile.data.risRic); + if(Profile.data.risRic) + this.$el.find('#nResult').val(Profile.data.risRic); this.trigger("renderCompleted:Search", this); this.$el.find("#searchBtn").addClass("ui-btn-active"); return this;