Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Commit

Permalink
Merge branch '2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
ercanozkaya committed Aug 18, 2015
2 parents 9cb35da + 40d5693 commit 66781ad
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion code/administrator/manifests/files/files_koowa.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<license>GNU GPLv3 - http://www.gnu.org/licenses/gpl.html</license>
<authorEmail>[email protected]</authorEmail>
<authorUrl>www.joomlatools.com</authorUrl>
<version>2.1.2</version>
<version>2.1.3</version>
<description></description>

<scriptfile>script.php</scriptfile>
Expand Down
2 changes: 1 addition & 1 deletion code/libraries/koowa/libraries/koowa.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Koowa
*
* @var string
*/
const VERSION = '2.1.2';
const VERSION = '2.1.3';

/**
* The root path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ public function tree($config = array())
if (!isset(self::$_loaded['tree']))
{
$html .= $this->koowa();
$html .= '<ktml:script src="media://koowa/com_koowa/js/tree.jquery'.($config->debug ? '' : '.min').'.js" />';
$html .= '<ktml:script src="media://koowa/com_koowa/js/jqtree'.($config->debug ? '' : '.min').'.js" />';
$html .= '<ktml:script src="media://koowa/com_koowa/js/koowa.tree'.($config->debug ? '' : '.min').'.js" />';

self::$_loaded['tree'] = true;
Expand Down
2 changes: 1 addition & 1 deletion code/libraries/koowa/libraries/template/helper/select.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function optionlist($config = array())
$label = $config->translate ? $this->getObject('translator')->translate( $option->label ) : $option->label;

$extra = '';
if(isset($option->disable) && $option->disable) {
if(isset($option->disabled) && $option->disabled) {
$extra .= 'disabled="disabled"';
}

Expand Down
11 changes: 9 additions & 2 deletions code/media/koowa/com_koowa/js/koowa.select2.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,15 @@
}
},
initSelection: function(element, callback) {
var selected= $.parseJSON($(element).val());
if (selected!=='') {
var selected = $.parseJSON($(element).val());

if ($.isArray(selected) && !selected.length)
{
selected = '';
$(element).val(selected);
}

if (selected) {
var data = {};
data[options.value] = selected;
$.ajax(options.url, {
Expand Down
2 changes: 1 addition & 1 deletion code/plugins/system/koowa/koowa.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<license>GNU GPLv3 - http://www.gnu.org/licenses/gpl.html</license>
<authorEmail>[email protected]</authorEmail>
<authorUrl>www.joomlatools.com</authorUrl>
<version>2.1.2</version>
<version>2.1.3</version>
<description />

<files folder="plugins/system">
Expand Down
2 changes: 1 addition & 1 deletion pkg_koowa.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<license>GNU GPLv3 - http://www.gnu.org/licenses/gpl.html</license>
<authorEmail>[email protected]</authorEmail>
<authorUrl>www.joomlatools.com</authorUrl>
<version>2.1.2</version>
<version>2.1.3</version>
<description></description>

<files>
Expand Down

0 comments on commit 66781ad

Please sign in to comment.