Skip to content
Permalink
Browse files

4.7.7 version (fixed issues 144 and 149)

  • Loading branch information...
Theophilix committed Sep 5, 2019
1 parent 96f69e4 commit 70696c60a79049528782df9ff59f8d0d41276db3
@@ -158,6 +158,7 @@ public function download(){
<icsfilename>'.$table->icsfilename.'</icsfilename>
<sorting>'.$table->sorting.'</sorting>
<switcher>'.$table->switcher.'</switcher>
<standardlayout>'.$table->standardlayout.'</standardlayout>
<row>'.$table->row.'</row>
<col>'.$table->col.'</col>
<hours>'.$table->hours.'</hours>
@@ -282,4 +282,9 @@ COM_EVENTTABLEEDIT_ADD_OPTION_LIST="Vorgeschaltete Option einfügen"
COM_EVENTTABLEEDIT_GLOBAL_OPTIONS="Optionen eintragen"
COM_EVENTTABLEEDIT_CORRESPONDING_TABLE="Korrespondierende Tabelle auswählen"
COM_EVENTTABLEEDIT_ENABLE_AUTOMATIC_SORTING_LABEL = "Automatische Sortierung nach Editierung aktivieren"
COM_EVENTTABLEEDIT_ENABLE_AUTOMATIC_SORTING_DESC = "Automatische Sortierung nach Editierung einer Zelle und neuem Laden der Seite aktivieren"
COM_EVENTTABLEEDIT_ENABLE_AUTOMATIC_SORTING_DESC = "Automatische Sortierung nach Editierung einer Zelle und neuem Laden der Seite aktivieren"

COM_EVENTTABLEEDIT_COLUMNS = "Layout Modus"
COM_EVENTTABLEEDIT_STACK = "Stapelmodus"
COM_EVENTTABLEEDIT_SWIPE = "Wischmodus"
COM_EVENTTABLEEDIT_TOGGLE = "Einzelanwahl"
@@ -274,4 +274,10 @@ COM_EVENTTABLEEDIT_GLOBAL_OPTIONS="Enter global options"
COM_EVENTTABLEEDIT_CORRESPONDING_TABLE="Choose corresponding table"
JGLOBAL_STATE = "Status"
COM_EVENTTABLEEDIT_ENABLE_AUTOMATIC_SORTING_LABEL = "Enable automatic sorting"
COM_EVENTTABLEEDIT_ENABLE_AUTOMATIC_SORTING_DESC = "Enable automatic sorting if a user edits a cell and reloads the page."
COM_EVENTTABLEEDIT_ENABLE_AUTOMATIC_SORTING_DESC = "Enable automatic sorting if a user edits a cell and reloads the page."


COM_EVENTTABLEEDIT_STANDARD_LAYOUT = "Standard Layout"
COM_EVENTTABLEEDIT_STACK = "Stack"
COM_EVENTTABLEEDIT_SWIPE = "Swipe"
COM_EVENTTABLEEDIT_TOGGLE = "Toggle"
@@ -382,6 +382,16 @@
</field>
<field name="automate_sort_column" type="text" ></field>

<field name="standardlayout"
type="list"
default="columntoggle"
class="inputbox"
label="COM_EVENTTABLEEDIT_STANDARD_LAYOUT"
description="COM_EVENTTABLEEDIT_STANDARD_LAYOUT">
<option value="columntoggle">COM_EVENTTABLEEDIT_TOGGLE</option>
<option value="swipe">COM_EVENTTABLEEDIT_SWIPE</option>
<option value="stack">COM_EVENTTABLEEDIT_STACK</option>
</field>
</fieldset>

<fieldset name="style"
@@ -74,6 +74,9 @@ ADD `corresptable` text COLLATE 'utf8_general_ci' NOT NULL AFTER `add_option_lis
ADD `show_selected_option_to_user` tinyint(1) NOT NULL AFTER `corresptable`,
ADD `show_selected_option_to_admin` tinyint(1) NOT NULL AFTER `show_selected_option_to_user`;

ALTER TABLE `#__eventtableedit_details`
ADD `standardlayout` varchar(255) NOT NULL;

DROP TABLE IF EXISTS `#__eventtableedit_heads`;
CREATE TABLE `#__eventtableedit_heads` (
`id` int(11) NOT NULL auto_increment,
@@ -233,6 +233,9 @@ function checkics(val){

<li class="normalshows"><?php echo $this->form->getLabel('switcher'); ?>
<?php echo $this->form->getInput('switcher'); ?></li>

<li><?php echo $this->form->getLabel('standardlayout'); ?>
<?php echo $this->form->getInput('standardlayout'); ?></li>

<li class="location"><?php echo $this->form->getLabel('hours'); ?>
<?php echo $this->form->getInput('hours'); ?></li>
@@ -169,6 +169,7 @@ function getXML(){
<icsfilename>'.$table->icsfilename.'</icsfilename>
<sorting>'.$table->sorting.'</sorting>
<switcher>'.$table->switcher.'</switcher>
<standardlayout>'.$table->standardlayout.'</standardlayout>
<row>'.$table->row.'</row>
<col>'.$table->col.'</col>
<hours>'.$table->hours.'</hours>
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<extension type="component" version="4.7.6" method="upgrade">
<extension type="component" version="4.7.7" method="upgrade">
<name>com_eventtableedit</name>
<creationDate>05-05-2019</creationDate>
<creationDate>05-09-2019</creationDate>
<author>Manuel Kaspar and Theophilix</author>
<license>GNU/GPL</license>
<copyright>2007 - 2019 Manuel Kaspar and Theophilix</copyright>
<authorEmail>webmaster@eventtableedit.com</authorEmail>
<authorUrl>http://www.eventtableedit.com</authorUrl>
<version>4.7.6</version>
<version>4.7.7</version>
<description>COM_EVENTTABLEEDIT_DESCRIPTION</description>

<scriptfile>script.php</scriptfile>
@@ -123,6 +123,10 @@ function update($parent)
$db->query();
}
$query = 'ALTER TABLE `#__eventtableedit_details` ADD `standardlayout` varchar(255) NOT NULL;';
$db->setQuery($query);
$db->query();
echo '<p>' . JText::_('COM_EVENTTABLEEDIT_UPDATE_TEXT') . '</p>';
}
@@ -11,7 +11,7 @@
if( typeof Tablesaw === "undefined" ) {
Tablesaw = {
i18n: {
modes: [ Joomla.JText._('COM_EVENTTABLEEDIT_STACK'), Joomla.JText._('COM_EVENTTABLEEDIT_SWIPE'), Joomla.JText._('COM_EVENTTABLEEDIT_TOGGLE') ],
modes: [ Joomla.JText._('COM_EVENTTABLEEDIT_TOGGLE'), Joomla.JText._('COM_EVENTTABLEEDIT_SWIPE'), Joomla.JText._('COM_EVENTTABLEEDIT_STACK') ],
columns: Joomla.JText._('COM_EVENTTABLEEDIT_COLUMNS'), //Col<span class=\"a11y-sm\">umn</span>s
columnBtnText: 'Columns',
columnsDialogError: 'No eligible columns.',
@@ -1231,7 +1231,7 @@ if( Tablesaw.mustard ) {
main: 'tablesaw-modeswitch',
toolbar: 'tablesaw-toolbar'
},
modes: [ 'stack', 'swipe', 'columntoggle' ],
modes: [ 'columntoggle', 'swipe', 'stack' ],
init: function( table ) {
var $table = $( table ),
ignoreMode = $table.attr( S.attributes.excludeMode ),
@@ -89,8 +89,10 @@
if(@$postget['mode']){
$tmodes = $postget['mode'];
}else{
$tmodes = $switcher_enable;
//$tmodes = $switcher_enable;
$tmodes = ($this->item->standardlayout) ? $this->item->standardlayout : $switcher_enable;
}
$sortdy = @$postget['sort']?@$postget['sort']:'0_asc';
if($this->item->sorting == 1){
//$sorting_enable .= 'data-tablesaw-sortable data-tablesaw-sortable-switch ';

0 comments on commit 70696c6

Please sign in to comment.
You can’t perform that action at this time.