Added Service Add, some internal consistency updates
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user