|
From: <txm...@us...> - 2014-06-26 19:31:43
|
Revision: 12650
http://sourceforge.net/p/xoops/svn/12650
Author: txmodxoops
Date: 2014-06-26 19:31:27 +0000 (Thu, 26 Jun 2014)
Log Message:
-----------
- Fixed bugs
- Still work to do
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/assets/js/fields.js
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/fields.php
XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/include/functions.php
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/assets/js/fields.js
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/assets/js/fields.js 2014-06-26 16:32:04 UTC (rev 12649)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/assets/js/fields.js 2014-06-26 19:31:27 UTC (rev 12650)
@@ -14,7 +14,9 @@
}
}
);
- $('tr.sortable').disableSelection();
+ $('tr.sortable').disableSelection();
+ },
+ function() {
$( ".portlet" )
.addClass( "ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" )
.find( ".portlet-header" )
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/fields.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/fields.php 2014-06-26 16:32:04 UTC (rev 12649)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/class/fields.php 2014-06-26 19:31:27 UTC (rev 12650)
@@ -207,17 +207,13 @@
$check_field_block->addOption(1, _AM_TDMCREATE_FIELD_BLOCK);
$parameters_tray->addElement($check_field_block);
- if(($i == 1) && ($table_autoincrement->getVar('table_autoincrement') == 1)) {
- $field_main = 0;
- $check_field_main = new XoopsFormRadio('', 'field_main', $field_main);
+ if(($i == 1)) {
+ $field_main = 1;
+ $check_field_main = new XoopsFormRadio('', 'field_main['.$i.']', $field_main);
$check_field_main->addOption($field_main, _AM_TDMCREATE_FIELD_MAINFIELD );
- } elseif(($i == 2) && ($table_autoincrement->getVar('table_autoincrement') == 1)) {
- $field_main = 1;
- $check_field_main = new XoopsFormRadio('', 'field_main', $field_main);
- $check_field_main->addOption($field_main, _AM_TDMCREATE_FIELD_MAINFIELD );
} else {
$field_main = 0;
- $check_field_main = new XoopsFormRadio('', 'field_main');
+ $check_field_main = new XoopsFormRadio('', 'field_main['.$i.']');
$check_field_main->addOption($field_main, _AM_TDMCREATE_FIELD_MAINFIELD );
}
$parameters_tray->addElement($check_field_main);
Modified: XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/include/functions.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/include/functions.php 2014-06-26 16:32:04 UTC (rev 12649)
+++ XoopsModules/TDMCreate/branches/timgno/1.91/TDMCreate/include/functions.php 2014-06-26 19:31:27 UTC (rev 12650)
@@ -253,9 +253,9 @@
$field_main = $field->getVar('field_main');
if($field_main == 1) {
- $check_field_main = new XoopsFormRadio('', 'field_main', $field_main);
+ $check_field_main = new XoopsFormRadio('', 'field_main['.$field_id.']', $field_main);
} else {
- $check_field_main = new XoopsFormRadio('', 'field_main');
+ $check_field_main = new XoopsFormRadio('', 'field_main['.$field_id.']');
}
$check_field_main->addOption($field_main, _AM_TDMCREATE_FIELD_MAINFIELD );
$parameters_tray->addElement($check_field_main);
|