Commit f958010c authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE

remove dead code as js function update_allowed_user_visibility was delete from code base

remove automatic call to all data-onchange-js as it cause problem performance. This need disappeared as update_allowed_user_visibility was removed, thus no alternative is provided for js function that need to be launch on page opening.
parent f3fe6af7
......@@ -222,10 +222,10 @@ class DataSourceUserCreateOrUpdateForm(forms.ModelForm):
self.fields["description"].widget.attrs["placeholder"] = _("description_placeholder_in_form")
except KeyError:
pass
try:
self.fields["public"].widget.attrs['data-onchange-js'] = 'update_allowed_user_visibility'
except KeyError:
pass
# try:
# self.fields["public"].widget.attrs['data-onchange-js'] = 'update_allowed_user_visibility'
# except KeyError:
# pass
def clean(self):
f = super().clean()
......
......@@ -92,8 +92,8 @@ $(document).ready(function(){
$("select[multiple].bootstrap-multiselect-applicant").each(function(i,e){
create_bootstrap_multiselect_from_applicant(e);
});
$("[data-onchange-js]").change(function(e){
window[$(e.target).attr("data-onchange-js")](e);
});
// $("[data-onchange-js]").change(function(e){
// window[$(e.target).attr("data-onchange-js")](e);
// });
$("input[type=file]").change(function (e){$(this).next('.custom-file-label').text(e.target.files[0].name);});
});
\ No newline at end of file
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