Permalink
Browse files

Bugfixes and enhancement 4.6.6 version

  • Loading branch information...
Theophilix
Theophilix committed May 28, 2018
1 parent 71893b0 commit aff0dd29b3db56b86d8a64470db619f67b978d62
@@ -70,8 +70,28 @@ Please post all feature requests in the issues tab.
## II Version history
**For version 4.6.5:**
**For version 4.6.6:**
[0 General]
- enhancement: Backend: CSV Import: Go to menu type of imported table: https://github.com/Theophilix/event-table-edit/issues/103
- bugfix: Backend: CSV Export: When leaving out table name an error appears https://github.com/Theophilix/event-table-edit/issues/100
- bugfix: Backend: xml import: wrong german spelling "warnung" should be "Warnung" (capital letter): https://github.com/Theophilix/event-table-edit/issues/99
- bugfix: Backend: Appointment tables overview: options not working, are linking back to normal tables menu
https://github.com/Theophilix/event-table-edit/issues/98
[1] Normal mode
- enhancement: Frontend: Sorting options: Change "Timestamp" (+ arrow up/down) to "Newest"/"Oldest" https://github.com/Theophilix/event-table-edit/issues/101
- bugfix: Frontend: Column Toggle Mode: When hiding a column, each click on a cell refreshes tablehttps://github.com/Theophilix/event-table-edit/issues/102
**For version 4.6.5:**
[0] General
- enhancement: backend: csv/xml export - activate function to export and import hidden timestamp column https://github.com/Theophilix/event-table-edit/issues/95
- enhancement: Backend: when importing a xml, go to the menu type of imported table https://github.com/Theophilix/event-table-edit/issues/86
@@ -171,8 +171,12 @@
<div>
<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0" />
<input type="hidden" name="view" value="appointmenttables" />
<input type="hidden" name="filter_order" value="<?php echo $listOrder; ?>" />
<input type="hidden" name="filter_order_Dir" value="<?php echo $listDirn; ?>" />
<?php echo JHtml::_('form.token'); ?>
</div>
</form>
<style>
#system-message-container h4.alert-heading{text-transform: capitalize;}
</style>
@@ -21,9 +21,48 @@
// no direct access adminForm
defined( '_JEXEC' ) or die;
JHtml::_('behavior.formvalidation');
JHtml::_('behavior.formvalidator');
?>
<form action="<?php echo JRoute::_('index.php?option=com_eventtableedit'); ?>" method="post" name="adminForm" id="adminForm">
<script>
Joomla.submitbutton = function(task)
{
if (task == '')
{
return false;
}
else
{
var isValid=true;
var action = task.split('.');
if (action[1] != 'cancel' && action[1] != 'close')
{
var forms = jQuery('form.form-validate');
for (var i = 0; i < forms.length; i++)
{
if (!document.formvalidator.isValid(forms[i]))
{
isValid = false;
break;
}
}
}
if (isValid)
{
Joomla.submitform(task);
return true;
}
else
{
jQuery("#system-message-container h4.alert-heading").html("Error");
jQuery("#system-message-container .alert").append("<p>Invalid field: Name</p>");
return false;
}
}
}
</script>
<form action="<?php echo JRoute::_('index.php?option=com_eventtableedit'); ?>" class="form-validate" method="post" name="adminForm" id="adminForm">
<div class="">
<fieldset class="adminform">
<legend><?php echo JText::_('COM_EVENTTABLEEDIT_EXPORT_TABLE') ?></legend>
@@ -102,12 +102,12 @@ public function createTableSelectList() {
if (count($tables) == 0) return null;
$elem = array();
$elem[] = JHTML::_('select.option', '', '');
$elem[] = JHTML::_('select.option', '', 'Please select table');
foreach($tables as $table) {
$elem[] = JHTML::_('select.option', $table->id, $table->id . ' ' . $table->name);
}
return JHTML::_('select.genericlist', $elem, 'tableList', '', 'value', 'text', 0);
return JHTML::_('select.genericlist', $elem, 'tableList', ' required="true"', 'value', 'text', 0);
}
public function createTableSelectList1() {
$tables = EventtableeditModelCsvimport::getTables();
@@ -176,3 +176,6 @@
<?php echo JHtml::_('form.token'); ?>
</div>
</form>
<style>
#system-message-container h4.alert-heading{text-transform: capitalize;}
</style>
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<extension type="component" version="4.6.5" method="upgrade">
<extension type="component" version="4.6.6" method="upgrade">
<name>com_eventtableedit</name>
<creationDate>29-04-18</creationDate>
<creationDate>29-05-29</creationDate>
<author>Manuel Kaspar and Theophilix</author>
<license>GNU/GPL</license>
<copyright>2007 - 2018 Manuel Kaspar and Theophilix</copyright>
<authorEmail>webmaster@eventtableedit.com</authorEmail>
<authorUrl>http://www.eventtableedit.com</authorUrl>
<version>4.6.5</version>
<version>4.6.6</version>
<description>COM_EVENTTABLEEDIT_DESCRIPTION</description>
<scriptfile>script.php</scriptfile>
@@ -604,7 +604,7 @@ BuildPopupWindow.prototype.sendData = function() {
addAnchorEvent(null, self.editedCell);
self.removePopup();
removeLoad();
jQuery('.tablesaw-modeswitch select').trigger('change');
//jQuery('.tablesaw-modeswitch select').trigger('change');
}
}).send();
@@ -125,4 +125,6 @@ COM_EVENTTABLEEDIT_BOOK_BUTTON="Ausgewählte Termine buchen"
COM_EVENTEDITTABLE_BLOCK_APPOINTMENT="Blockiert<br>(Zeitlimit)"
COM_EVENTTABLEEDIT_TABLE_BOOKING="Sie buchen folgende Termine:"
COM_EVENTTABLEEDIT_CALANDER_PACHEHOLDER="Datum mittels Picker wählen"
COM_EVENTTABLEEDIT_FILTER_PACHEHOLDER="Text eintippen"
COM_EVENTTABLEEDIT_FILTER_PACHEHOLDER="Text eintippen"
COM_EVENTTABLEEDIT_NEWEST="Neuester"
COM_EVENTTABLEEDIT_OLDEST="Ältester"
@@ -120,4 +120,6 @@ COM_EVENTTABLEEDIT_BOOK_BUTTON="Book selected appointments"
COM_EVENTEDITTABLE_BLOCK_APPOINTMENT="blocked<br>(time limit)"
COM_EVENTTABLEEDIT_TABLE_BOOKING="Book the following dates:"
COM_EVENTTABLEEDIT_CALANDER_PACHEHOLDER="Choose date picker"
COM_EVENTTABLEEDIT_FILTER_PACHEHOLDER="Type text"
COM_EVENTTABLEEDIT_FILTER_PACHEHOLDER="Type text"
COM_EVENTTABLEEDIT_NEWEST="Newest"
COM_EVENTTABLEEDIT_OLDEST="Oldest"
@@ -978,9 +978,15 @@ if( Tablesaw.mustard ) {
if( !hasNumericAttribute ) {
$t.attr( "data-sortable-numeric", isNumeric ? "" : "false" );
}
if($t.text() == "Timestamp"){
html.push( '<option' + ( isDefaultCol && !isDescending ? ' selected' : '' ) + ' value="' + j + '_asc">'+newest+' ' + ( isNumeric ? '&#x2191;' : '(A-Z)' ) + '</option>' );
html.push( '<option' + ( isDefaultCol && isDescending ? ' selected' : '' ) + ' value="' + j + '_desc">'+oldest+' ' + ( isNumeric ? '&#x2193;' : '(Z-A)' ) + '</option>' );
}else{
html.push( '<option' + ( isDefaultCol && !isDescending ? ' selected' : '' ) + ' value="' + j + '_asc">' + $t.text() + ' ' + ( isNumeric ? '&#x2191;' : '(A-Z)' ) + '</option>' );
html.push( '<option' + ( isDefaultCol && isDescending ? ' selected' : '' ) + ' value="' + j + '_desc">' + $t.text() + ' ' + ( isNumeric ? '&#x2193;' : '(Z-A)' ) + '</option>' );
}
html.push( '<option' + ( isDefaultCol && !isDescending ? ' selected' : '' ) + ' value="' + j + '_asc">' + $t.text() + ' ' + ( isNumeric ? '&#x2191;' : '(A-Z)' ) + '</option>' );
html.push( '<option' + ( isDefaultCol && isDescending ? ' selected' : '' ) + ' value="' + j + '_desc">' + $t.text() + ' ' + ( isNumeric ? '&#x2193;' : '(Z-A)' ) + '</option>' );
});
html.push( '</select></span></label>' );
@@ -174,6 +174,11 @@ protected function _prepareDocument()
} else {
require_once JPATH_COMPONENT.'/helpers/phpToJs.php';
$doc = JFactory::getDocument();
$this->document->addScriptDeclaration('
var newest = "'.JText::_('COM_EVENTTABLEEDIT_NEWEST').'";
var oldest = "'.JText::_('COM_EVENTTABLEEDIT_OLDEST').'";
');
$this->document->addScript($this->baseurl.'/components/com_eventtableedit/template/js/tablesaw.js?v3');
$this->document->addScript($this->baseurl.'/components/com_eventtableedit/template/js/tablesaw-init.js');

0 comments on commit aff0dd2

Please sign in to comment.