Optimised Company() Setup() Config() and changed method_directory into URL
This commit is contained in:
@@ -41,13 +41,13 @@ class Controller_Admin_Host extends Controller_TemplateDefault_Admin {
|
||||
ORM::factory('Host_Server')->find_all(),
|
||||
25,
|
||||
array(
|
||||
'id'=>array('label'=>'ID','url'=>'admin/host/update/'),
|
||||
'id'=>array('label'=>'ID','url'=>URL::link('admin','host/update/')),
|
||||
'name'=>array('label'=>'Details'),
|
||||
),
|
||||
array(
|
||||
'page'=>TRUE,
|
||||
'type'=>'select',
|
||||
'form'=>'admin/host/update/',
|
||||
'form'=>URL::link('admin','host/update'),
|
||||
)),
|
||||
));
|
||||
}
|
||||
|
@@ -56,7 +56,7 @@ class Model_Host_Server extends ORM_OSB {
|
||||
$("button[name=submit]").click(function() {
|
||||
var t=$(this).val().split(":");
|
||||
if (x++) { alert("Session expired, please refresh the page!"); return false; }
|
||||
$.getJSON("'.URL::site('admin/host/ajaxmanage/'.$this->id).'", { k: "'.$k.'",t: t[1] }, function(data) {
|
||||
$.getJSON("'.URL::link('admin','host/ajaxmanage/'.$this->id,TRUE).'", { k: "'.$k.'",t: t[1] }, function(data) {
|
||||
$.each(data, function(key, val) { $("#"+key+"_"+t[0]+"_"+t[1]).val(val); });
|
||||
})
|
||||
.error(function() { alert("There was a problem with the request"); return false; })
|
||||
|
Reference in New Issue
Block a user