+10
-2
@@ -1842,7 +1842,7 @@ class SQLFORM(FORM):
|
|||||||
value_input = SQLFORM.widgets.integer.widget(field, field.default, _id=_id,_class='form-control')
|
value_input = SQLFORM.widgets.integer.widget(field, field.default, _id=_id,_class='form-control')
|
||||||
else:
|
else:
|
||||||
value_input = INPUT(
|
value_input = INPUT(
|
||||||
_type='text', _id=_id,
|
_type='text', _id=_id,
|
||||||
_class=(field.type or '')+' form-control')
|
_class=(field.type or '')+' form-control')
|
||||||
|
|
||||||
new_button = INPUT(
|
new_button = INPUT(
|
||||||
@@ -1878,7 +1878,15 @@ class SQLFORM(FORM):
|
|||||||
function %(prefix)s_build_query(aggregator,a) {
|
function %(prefix)s_build_query(aggregator,a) {
|
||||||
var b=a.replace('.','-');
|
var b=a.replace('.','-');
|
||||||
var option = jQuery('#%(field_id)s_'+b+' select').val();
|
var option = jQuery('#%(field_id)s_'+b+' select').val();
|
||||||
var value = jQuery('#%(value_id)s_'+b).val().replace('"','\\\\"');
|
var value;
|
||||||
|
var $value_item = jQuery('#%(value_id)s_'+b);
|
||||||
|
if ($value_item.is(':checkbox')){
|
||||||
|
if ($value_item.is(':checked'))
|
||||||
|
value = 'True';
|
||||||
|
else value = 'False';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{ value = $value_item.val().replace('"','\\\\"')}
|
||||||
var s=a+' '+option+' "'+value+'"';
|
var s=a+' '+option+' "'+value+'"';
|
||||||
var k=jQuery('#%(keywords_id)s');
|
var k=jQuery('#%(keywords_id)s');
|
||||||
var v=k.val();
|
var v=k.val();
|
||||||
|
|||||||
Reference in New Issue
Block a user