jbe/bsw@11: --[[-- jbe/bsw@11: ui.enable_partial_loading() jbe/bsw@11: jbe@12: This function tells subsequent calls of ui.link{...} and ui.form{...} that jbe@12: partial loading should be enabled when requested by passing "partial" jbe@12: arguments to ui.link or ui.form. jbe@12: jbe@12: NOTE: To use partial loading, the slots being requested need to be jbe@12: white-listed by calling request.set_allowed_json_request_slots({...}) jbe@12: in the application configuration file. TODO: By now, at least the slot jbe@12: names "default", "trace" and "system_error" need to be white-listed, as jbe@12: these slots are currently hardwired in ui._partial_load_js(...). jbe/bsw@11: jbe/bsw@11: --]]-- jbe/bsw@11: jbe/bsw@11: function ui.enable_partial_loading() jbe/bsw@11: ui._partial_loading_enabled = true jbe/bsw@11: request.force_absolute_baseurl() jbe/bsw@11: end