mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-30 16:49:58 +09:00
issue 223, fixed a bug related widget
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9464 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
32b6fdb021
commit
5319125b33
1 changed files with 5 additions and 5 deletions
|
|
@ -273,12 +273,12 @@ jQuery(document).ready(function($){
|
||||||
|
|
||||||
$('#fo_widget').bind('submit', function(){
|
$('#fo_widget').bind('submit', function(){
|
||||||
function on_complete(data){
|
function on_complete(data){
|
||||||
if (data.error){
|
if (data['error'] != '0'){
|
||||||
alert(data.message);
|
alert(data['message']);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
completeGenerateCodeInPage(data.widget_code);
|
completeGenerateCodeInPage(data['widget_code']);
|
||||||
}
|
}
|
||||||
|
|
||||||
var datas = $(this).serializeArray();
|
var datas = $(this).serializeArray();
|
||||||
|
|
@ -291,8 +291,8 @@ jQuery(document).ready(function($){
|
||||||
else params[data.name] = data.value;
|
else params[data.name] = data.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
$.exec_json('widget.procWidgetGenerateCodeInPage', params, on_complete);
|
exec_xml('widget', 'procWidgetGenerateCodeInPage', params, on_complete, ['error', 'message', 'widget_code']);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue