mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2025-02-22 08:53:23 -05:00
Turns off cell editing, add "" for status.
This commit is contained in:
parent
9cc6cb20be
commit
f15d312e5a
@ -31,9 +31,9 @@ $(function(){
|
|||||||
responsiveLayout:true,
|
responsiveLayout:true,
|
||||||
layout:"fitColumns",
|
layout:"fitColumns",
|
||||||
columns:[
|
columns:[
|
||||||
{title:"Status", field:"shop_user_role", align:"center", width:125, editor:statusEditor, headerFilter:true},
|
{title:"Status", field:"shop_user_role", align:"center", width:125, editable:off, editor:statusEditor, headerFilter:true},
|
||||||
{title:"Date", field:"date", align:"center",width:100, headerFilter:"input"},
|
{title:"Date", field:"date", align:"center",width:100, headerFilter:"input"},
|
||||||
{title:"Day", field:"dayname", align:"center", width:100, editor:dayEditor, headerFilter:true},
|
{title:"Day", field:"dayname", align:"center", width:100, editable:off, editor:dayEditor, headerFilter:true},
|
||||||
{title:"Shop", field:"shop_id", sorter:"number", headerFilter:"number", align:"center", width:85,
|
{title:"Shop", field:"shop_id", sorter:"number", headerFilter:"number", align:"center", width:85,
|
||||||
formatter:function(cell, formatterParams){
|
formatter:function(cell, formatterParams){
|
||||||
var shop_id = cell.getValue();
|
var shop_id = cell.getValue();
|
||||||
@ -63,7 +63,7 @@ $(function(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
{title:"Project", field:"project_id", align:"center", width:125, editor:projectEditor, headerFilter:true},
|
{title:"Project", field:"project_id", align:"center", width:125, editable:off, editor:projectEditor, headerFilter:true},
|
||||||
{title:"Comments", field:"comment", formatter:"textarea", headerFilter:"input"}
|
{title:"Comments", field:"comment", formatter:"textarea", headerFilter:"input"}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
@ -74,6 +74,9 @@ $(function(){
|
|||||||
|
|
||||||
} // if contact_id
|
} // if contact_id
|
||||||
|
|
||||||
|
function off(cell){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
//cell - the cell component for the editable cell
|
//cell - the cell component for the editable cell
|
||||||
//onRendered - function to call when the editor has been rendered
|
//onRendered - function to call when the editor has been rendered
|
||||||
@ -164,7 +167,7 @@ $(function(){
|
|||||||
$.post("json/reports.php", { roles: 1 }, function (data) {
|
$.post("json/reports.php", { roles: 1 }, function (data) {
|
||||||
var obj = $.parseJSON(data);
|
var obj = $.parseJSON(data);
|
||||||
|
|
||||||
projects = "<select>";
|
projects = "<select><option value=''></option>";
|
||||||
$.each(obj, function(k,v) {
|
$.each(obj, function(k,v) {
|
||||||
projects += "<option value='" + v.shop_user_role_id + "'>" + v.shop_user_role_id + "</option>";
|
projects += "<option value='" + v.shop_user_role_id + "'>" + v.shop_user_role_id + "</option>";
|
||||||
});
|
});
|
||||||
@ -180,6 +183,7 @@ $(function(){
|
|||||||
"box-sizing":"border-box",
|
"box-sizing":"border-box",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
//Set value of editor to the current value of the cell
|
//Set value of editor to the current value of the cell
|
||||||
editor.val(cell.getValue());
|
editor.val(cell.getValue());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user