Revision 5a84725c
Von Werner Hahn vor mehr als 6 Jahren hinzugefügt
js/kivi.shop_part.js | ||
---|---|---|
3 | 3 |
|
4 | 4 |
// this is called by sub render, with a certain prerendered html (edit.html,categories.html) |
5 | 5 |
ns.shop_part_dialog = function(title, html) { |
6 |
alert('HALLO'); |
|
6 | 7 |
var id = 'jqueryui_popup_dialog'; |
7 | 8 |
var dialog_params = { |
8 | 9 |
id: id, |
... | ... | |
15 | 16 |
$('#' + id).remove(); |
16 | 17 |
|
17 | 18 |
$dialog = $('<div style="display:none" id="' + id + '"></div>').appendTo('body'); |
19 |
alert('HALLO'); |
|
18 | 20 |
$dialog.attr('title', title); |
19 | 21 |
$dialog.html(html); |
20 | 22 |
$dialog.dialog(dialog_params); |
... | ... | |
67 | 69 |
|
68 | 70 |
// gets all categories from the webshop |
69 | 71 |
ns.get_all_categories = function(shop_part_id) { |
70 |
var form = new Array; //$('form').serializeArray(); |
|
71 |
form.push( { name: 'action', value: 'ShopPart/get_categories' } |
|
72 |
, { name: 'shop_part_id', value: shop_part_id } |
|
73 |
); |
|
74 |
|
|
75 |
$.post('controller.pl', form, function(data) { |
|
72 |
//var form = new Array; //$('form').serializeArray(); |
|
73 |
//form.push( { name: 'action', value: 'ShopPart/get_categories' } |
|
74 |
// , { name: 'shop_part_id', value: shop_part_id } |
|
75 |
//); |
|
76 |
$.post('controller.pl', { action: 'ShopPart/get_categories', shop_part_id: shop_part_id }, function(data) { |
|
76 | 77 |
kivi.eval_json_result(data); |
77 | 78 |
}); |
79 |
//$.post('controller.pl', form, function(data) { |
|
80 |
// kivi.eval_json_result(data); |
|
81 |
//}); |
|
78 | 82 |
} |
79 | 83 |
// write categories in kivi DB not in the shops DB TODO: create new categories in the shops db |
80 | 84 |
ns.save_categories = function(shop_part_id, shop_id) { |
Auch abrufbar als: Unified diff
Shopmodul: Anpassungen an neuen Partcontroller