[hotfix] saving as new bugfix

This commit is contained in:
Maxime Beauchemin
2016-02-29 22:36:44 -08:00
parent 8b0f2afc0a
commit eccf9c2ac7
2 changed files with 24 additions and 24 deletions

View File

@@ -240,27 +240,6 @@ var px = (function() {
console.error("require(", visType, ") failed.");
}
}
function prepForm(){
var i = 1;
// Assigning the right id to form elements in filters
$("#filters > div").each(function() {
$(this).attr("id", function() {return "flt_" + i;})
$(this).find("#flt_col_0")
.attr("id", function() {return "flt_col_" + i;})
.attr("name", function() {return "flt_col_" + i;});
$(this).find("#flt_op_0")
.attr("id", function() {return "flt_op_" + i;})
.attr("name", function() {return "flt_op_" + i;});
$(this).find("#flt_eq_0")
.attr("id", function() {return "flt_eq_" + i;})
.attr("name", function() {return "flt_eq_" + i;});
i++;
});
}
function renderSlice(){
prepForm();
slice.render();
}
// Export public functions
return {
@@ -269,7 +248,6 @@ var px = (function() {
formatDate: formatDate,
timeFormatFactory: timeFormatFactory,
color: color(),
renderSlice: renderSlice,
getParam: getParam,
}
})();