Ver Fonte

notLoadUserOpinion

unknown há 5 anos atrás
pai
commit
bb99e0922c
1 ficheiros alterados com 5 adições e 4 exclusões
  1. 5 4
      o2web/source/x_component_process_Xform/Opinion.js

+ 5 - 4
o2web/source/x_component_process_Xform/Opinion.js

@@ -179,10 +179,11 @@ MWF.xApplication.process.Xform.Opinion = MWF.APPOpinion =  new Class({
             }
             }
         }.bind(this));
         }.bind(this));
 
 
-
-        MWF.UD.getDataJson("userOpinion", function(json){
-            this.userOpinions = json;
-        }.bind(this), false);
+        if( !this.json.notLoadUserOpinion ){
+            MWF.UD.getDataJson("userOpinion", function(json){
+                this.userOpinions = json;
+            }.bind(this), false);
+        }
         this.node.getFirst().addEvent("input", function(e){
         this.node.getFirst().addEvent("input", function(e){
             this.startSearchOpinion();
             this.startSearchOpinion();
         }.bind(this));
         }.bind(this));