Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion administrator/assets/index.html

This file was deleted.

2 changes: 1 addition & 1 deletion administrator/models/fields/captureimage.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function setup(SimpleXMLElement $element, $value, $group = null)
protected function getInput()
{
HTMLHelper::script('media/com_tjfields/vendors/webcamjs/webcam.min.js');
HTMLHelper::script('administrator/components/com_tjfields/assets/js/captureimage.min.js');
HTMLHelper::script('media/com_tjfields/js/captureimage.min.js');

$layoutData = $this->getLayoutData();

Expand Down
2 changes: 1 addition & 1 deletion administrator/models/fields/ownership.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ protected function getOptions()
}

$doc = Factory::getDocument();
$doc->addScript(JUri::root() . 'administrator/components/com_tjfields/assets/js/ownershipfield.js');
$doc->addScript(JUri::root() . 'media/com_tjfields/js/ownershipfield.js');

$data = $this->getLayoutData();

Expand Down
2 changes: 1 addition & 1 deletion administrator/models/fields/relatedfields.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use Joomla\CMS\MVC\Model\BaseDatabaseModel;

$document = Factory::getDocument();
$document->addScript(JUri::root() . 'administrator/components/com_tjfields/assets/js/relatedfield.js');
$document->addScript(JUri::root() . 'media/com_tjfields/js/relatedfield.js');

/**
* Form Field class for the Joomla Platform.
Expand Down
6 changes: 3 additions & 3 deletions administrator/models/fields/tjlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ protected function getInput()
$html = parent::getInput();

$doc = Factory::getDocument();
$doc->addScript(JUri::root() . 'administrator/components/com_tjfields/assets/js/tjlist.min.js');
$doc->addScript(JUri::root() . 'media/com_tjfields/js/tjlist.min.js');

if ($this->multiple)
{
$doc->addStyleSheet(JUri::root() . 'administrator/components/com_tjfields/assets/css/bootstrap-tagsinput.css');
$doc->addScript(JUri::root() . 'administrator/components/com_tjfields/assets/js/bootstrap-tagsinput.min.js');
$doc->addStyleSheet(JUri::root() . 'media/com_tjfields/css/bootstrap-tagsinput.css');
$doc->addScript(JUri::root() . 'media/com_tjfields/js/bootstrap-tagsinput.min.js');
}

$options = $this->getOptions();
Expand Down
2 changes: 1 addition & 1 deletion administrator/views/field/tmpl/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
jQuery("#field-form #jform_type").attr('onchange', 'show_option_div(this.value);');
});
</script>
<?php $document->addScript(JUri::root() . 'administrator/components/com_tjfields/assets/js/field.js'); ?>
<?php $document->addScript(JUri::root() . 'media/com_tjfields/js/field.js'); ?>
<div class="techjoomla-bootstrap">
<form action="<?php echo JRoute::_('index.php?option=com_tjfields&view=field&layout=edit&id='.(int) $this->item->id).'&client='.$input->get('client','','STRING'); ?>" method="post" enctype="multipart/form-data" name="adminForm" id="field-form" class="form-validate">
<div class="form-horizontal">
Expand Down
2 changes: 1 addition & 1 deletion administrator/views/fields/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
JText::script('COM_TJFIELD_CONFIRM_DELETE_FIELD', true);
JText::script('COM_TJFIELDS_FILE_ERROR_MAX_SIZE');
JText::script('COM_TJFIELD_CONFIRM_DELETE_REFRENCE_DATA', true);
JHtml::script(JUri::root() . 'administrator/components/com_tjfields/assets/js/tjfields.js');
JHtml::script(JUri::root() . 'media/com_tjfields/js/tjfields.js');
JHtml::script(JUri::root() . 'libraries/techjoomla/assets/js/houseKeeping.js');

// Import CSS
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion administrator/assets/js/tjlist.js → media/js/tjlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var tjlist = {
var script= document.createElement('script');

// @Todo - Decide right place to store below JS
script.src= Joomla.getOptions('system.paths').base +'/administrator/components/com_tjfields/assets/js/bootstrap-tagsinput.min.js';
script.src= Joomla.getOptions('system.paths').base +'/media/com_tjfields/js/bootstrap-tagsinput.min.js';
head.appendChild(script);
}
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions tjfields.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@
<filename>tjfields.php</filename>
</files>
<media destination="com_tjfields" folder="media">
<folder>vendors</folder>
<folder>css</folder>
<folder>images</folder>
<folder>js</folder>
<folder>vendors</folder>
</media>
<languages folder="site_language">
<language tag="en-GB">en-GB/en-GB.com_tjfields.ini</language>
Expand All @@ -49,7 +51,6 @@
</languages>
<administration>
<files folder="administrator">
<folder>assets</folder>
<folder>controllers</folder>
<folder>helpers</folder>
<folder>models</folder>
Expand Down