This commit is contained in:
sparkyx 2021-02-07 09:47:20 +01:00
parent 79ecb68033
commit 800247692d
5 changed files with 33 additions and 25 deletions

View file

@ -74,7 +74,7 @@ var ManageTable = function (p_table_name)
{
this.callback = "ajax.php"; //!< File to call
this.control = "dtr"; //<! Prefix Id of dialog box, table, row
this.mt_style={position: "fixed", top: '15%', width: "auto", "margin-left": "20%"};
this.mt_style={position: "fixed", top: '15%', width: "auto", "max-width":"60%","margin-left": "20%"};
this.sort_column=0;
this.param = {"table": p_table_name, "ctl_id": this.control}; //<! default value to pass
this.set_style=function(p_json) {
@ -311,6 +311,11 @@ var ManageTable = function (p_table_name)
var obj = {id: control, "cssclass": "inner_box", "html": loading()};
add_div(obj);
var pos = calcy(250);
if (window.innerWidth < 1200) {
here.mt_style["margin-left"]="2%";
here.mt_style["max-width"]="80%";
}
console.log(here.mt_style);
$(obj.id).setStyle(here.mt_style);
$(obj.id).update(x['html']);
} catch (e) {