px-jquery-filter-box
Advanced tools
Comparing version 1.0.21 to 1.0.22
{ | ||
"name": "px-jquery-filter-box", | ||
"version": "1.0.21", | ||
"version": "1.0.22", | ||
"description": "Used to group objects used jquery-filter-box filter. When the filtering objects are many, up to 2 or more lines, jquery-filter-box allows you to group these objects as many times as you want. For example, you can use Filter 1, Filter 2, Filter 3, Filter 4, Filter 5 ... objects as a single object with jquery-filter-box[Filter 1, Filter 2, Filter 3, Filter 4, Filter 5]", | ||
@@ -5,0 +5,0 @@ "main": "px-filter-box.js", |
@@ -55,2 +55,6 @@ (function ($) { | ||
if (_options.icon == "" || _options.icon == null) { | ||
_options.icon = "firsticon"; | ||
} | ||
if (_options.type == "sort") { | ||
@@ -65,32 +69,54 @@ if (_options.selected_info_text == "Filtre Seçildi") { | ||
_parent.append(`<div id=${_id}" data-key="${_key}" data-object-id="${_object_id}" data-object-class="${_object_class}" class="px-filter-box mfb-type-${ | ||
_options.type | ||
}" title="${_cap} Seçenekleri"> | ||
<i class="${_options.icon}"></i> | ||
<span class="my-flt-selected-text"> | ||
<i class="my-flt-selected-count">0</i> | ||
${_options.selected_info_text} | ||
</span> | ||
<div class="my-flt-objects"> | ||
${ | ||
_options.clean_text_visible | ||
? '<div class="my-flt-clean"><span class="my-flt-clean-btn">' + | ||
_options.clean_text + | ||
"</span></div>" | ||
: "" | ||
} | ||
<div class="my-flt-container">${_filterobjectshtml}</div> | ||
</div> | ||
</div>`); | ||
// _parent.append(`<div id="${_id}" data-key="${_key}" data-object-id="${_object_id}" data-object-class="${_object_class}" class="px-filter-box mfb-type-${ | ||
// _options.type | ||
// }" title="${_cap} Seçenekleri"> | ||
// <i class="${_options.icon}"></i> | ||
// <span class="my-flt-selected-text"> | ||
// <i class="my-flt-selected-count">0</i> | ||
// ${_options.selected_info_text} | ||
// </span> | ||
// <div class="my-flt-objects"> | ||
// ${ | ||
// _options.clean_text_visible | ||
// ? '<div class="my-flt-clean"><span class="my-flt-clean-btn">' + | ||
// _options.clean_text + | ||
// "</span></div>" | ||
// : "" | ||
// } | ||
// <div class="my-flt-container">${_filterobjectshtml}</div> | ||
// </div> | ||
// </div>`); | ||
// _parent.append( | ||
// '<div id="' + _id + '" data-key="' + _key + '" data-object-id="' + _object_id + '" data-object-class="' + _object_class + '" class="px-filter-box mfb-type-' + _options.type + '" title="' + _cap + ' Seçenekleri">' + | ||
// " <i class='" + _options.icon + "'></i>" + | ||
// ' <span class="my-flt-selected-text"><i class="my-flt-selected-count">0</i> ' + _options.selected_info_text + "</span>" + | ||
// ' <div class="my-flt-objects">' + | ||
// (_options.clean_text_visible ? '<div class="my-flt-clean"><span class="my-flt-clean-btn">' + _options.clean_text + "</span></div>" : "") + | ||
// ' <div class="my-flt-container">' + _filterobjectshtml + "</div>" + | ||
// " </div>" + | ||
// "</div>" | ||
// ); | ||
_parent.append( | ||
'<div id="' + | ||
_id + | ||
'" data-key="' + | ||
_key + | ||
'" data-object-id="' + | ||
_object_id + | ||
'" data-object-class="' + | ||
_object_class + | ||
'" class="px-filter-box mfb-type-' + | ||
_options.type + | ||
'" title="' + | ||
_cap + | ||
' Seçenekleri">' + | ||
" <i class='" + | ||
_options.icon + | ||
"'></i>" + | ||
' <span class="my-flt-selected-text"><i class="my-flt-selected-count">0</i> ' + | ||
_options.selected_info_text + | ||
"</span>" + | ||
' <div class="my-flt-objects">' + | ||
(_options.clean_text_visible | ||
? '<div class="my-flt-clean"><span class="my-flt-clean-btn">' + | ||
_options.clean_text + | ||
"</span></div>" | ||
: "") + | ||
' <div class="my-flt-container">' + | ||
_filterobjectshtml + | ||
"</div>" + | ||
" </div>" + | ||
"</div>" | ||
); | ||
_id = "#" + _id; | ||
@@ -97,0 +123,0 @@ |
@@ -44,3 +44,5 @@ ## description | ||
> type: 'filter', //'filter' or 'sort'<br> | ||
> icon: "firsticon", | ||
> button_caption: "Filtreyi Uygula",<br> | ||
> clean_text_visible: true, | ||
> clean_text: "Seçimleri Temizle",<br> | ||
@@ -47,0 +49,0 @@ > select_add_default_option: true, |
Sorry, the diff of this file is not supported yet
42783
669
72