Commit 76b86c73 authored by Raph El's avatar Raph El
Browse files

Form : hotfix form.js reload url

parent aef7f02b
......@@ -25,12 +25,12 @@ var formObj = {
initDefaults : function(pInit){},
initEvents : function(pInit){},
initViews : function(pInit){
if(location.hash.indexOf(hashUrlPage+".view.forms.form.dir")>=0){
if(location.hash.indexOf(hashUrlPage+".view.forms.dir.form")>=0){
var hashArray = location.hash.split('.');
this.urls.form(this, hashArray[4]);
this.urls.form(this, hashArray[5]);
}else if(location.hash.indexOf(hashUrlPage+".view.forms.dir.answer.")>=0){
var hashArray = location.hash.split('.');
this.urls.answer(this, hashArray[4]);
this.urls.answer(this, hashArray[5]);
}else if(location.hash.indexOf(hashUrlPage+".view.forms.dir.answers.form")>=0){
var hashArray = location.hash.split('.');
this.urls.answers(this, hashArray[6]);
......@@ -120,6 +120,7 @@ var formObj = {
});
$(fObj.container).html(str);
fObj.events.form(fObj);
fObj.events.add(fObj);
},
form : function(id, form){
var panelColor = "panel-primary";
......@@ -132,7 +133,7 @@ var formObj = {
formCostum = true;
urlCostum = baseUrl+'/costum/co/index/id/'+form.source.key
}
var str='<div class="col-sm-6 col-xs-12" id="'+id+'Form">'+
'<div class="panel '+panelColor+'">'+
'<div class="panel-heading">'+
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment