Added Service Add, some internal consistency updates

This commit is contained in:
Deon George
2013-11-27 11:22:20 +11:00
parent c18d5a3881
commit 0ed5e5163d
29 changed files with 372 additions and 179 deletions

View File

@@ -28,7 +28,7 @@ class Controller_Admin_Product extends Controller_Product {
$output = _('Unable to find translate data');
} else {
$pto = $po->product_translate->where('language_id','=',$_REQUEST['key'])->find();
$pto = $po->translate->where('language_id','=',$_REQUEST['key'])->find();
$output = View::factory('product/admin/ajaxtranslate')
->set('o',$pto);
@@ -89,7 +89,7 @@ $(document).ready(function() {
alert("Failed to submit");
},
success: function(data) {
$("div[id=translate]").replaceWith(data);
$("div[id=translate]").empty().append(data);
}
});
});
@@ -136,7 +136,7 @@ $(document).ready(function() {
alert("Failed to submit");
},
success: function(data) {
$("div[id=translate]").replaceWith(data);
$("div[id=translate]").empty().append(data);
}
});
});
@@ -148,7 +148,7 @@ $(document).ready(function() {
->title('Update Product')
->title_icon('icon-wrench')
->body(View::factory('product/admin/edit')
->set('plugin_form',$po->admin_update())
->set('plugin_form',$po->plugin_edit())
->set('o',$po));
}