PluginProbe
Poll Maker by AYS – Versus Polls, Anonymous Polls, Image Polls / 6.5.1
Poll Maker by AYS – Versus Polls, Anonymous Polls, Image Polls v6.5.1
6.5.1 6.5.0 6.4.9 6.4.8 6.4.7 6.4.6 6.4.5 6.4.4 6.4.3 6.4.2 6.4.1 6.4.0 6.3.9 6.3.8 6.3.7 6.3.6 6.3.5 6.3.4 6.3.3 5.6.0 5.6.1 5.6.2 5.6.3 5.6.4 5.6.5 All 154 releases
← All changes | admin/js/poll-maker-ays-admin.js +17 -4 6.4.6 → 6.5.1 View file →
@@ -1538,9 +1538,9 @@
1538 1538 var val = $(this).val();
1539 1539 $('.apm-title-box h5').text(val);
1540 1540 });
1541 1541 var checkAnswerStyle = $(document).find("#ays_poll_enable_answer_style").prop("checked");
1542 - $(document).on('change', '.ays-poll-question-font-size,#ays_poll_question_image_height,#ays_answers_view,#ays_poll_answer_img_height,#ays_poll_answer_image_border_radius,#ays_poll_image_background_size,#ays_poll_answers_padding,#ays_poll_answers_margin,#ays_poll_title_font_size,#ays_poll_title_font_weight,#ays_poll_title_alignment,#ays_poll_text_type_placeholder,#ays_poll_question_image_object_fit,#ays_poll_answers_box_shadow_enable,#ays_poll_answers_box_shadow_color,#ays_poll_answer_border_radius,#ays_poll_answer_box_shadow_x_offset,#ays_poll_answer_box_shadow_y_offset,#ays_poll_answer_box_shadow_z_offset' , function () {
1542 + $(document).on('change', '.ays-poll-question-font-size,#ays_poll_question_image_height,#ays_answers_view,#ays_poll_answer_img_height,#ays_poll_answer_image_border_radius,#ays_poll_image_background_size,#ays_poll_answers_padding,#ays_poll_answers_margin,#ays_poll_title_font_size,#ays_poll_title_font_weight,#ays_poll_title_alignment,#ays_poll_title_text_transform,#ays_poll_text_type_placeholder,#ays_poll_question_image_object_fit,#ays_poll_answers_box_shadow_enable,#ays_poll_answers_box_shadow_color,#ays_poll_answer_border_radius,#ays_poll_answer_box_shadow_x_offset,#ays_poll_answer_box_shadow_y_offset,#ays_poll_answer_box_shadow_z_offset' , function () {
1543 1543 var checkAnswerStyleOnChange = $(document).find("#ays_poll_enable_answer_style").prop("checked");
1544 1544 refreshLivePreview(checkAnswerStyleOnChange);
1545 1545 });
1546 1546
@@ -1989,8 +1989,10 @@
1989 1989 'display': 'flex',
1990 1990 });
1991 1991 // Title alignment
1992 1992 var titleAlignment = $(document).find("#ays_poll_title_alignment").val();
1993 + // Title text transform
1994 + var titleTextTransform = $(document).find("#ays_poll_title_text_transform").val();
1993 1995
1994 1996 if(parseInt(imageHeight) < 0){
1995 1997 imageHeight = 0;
1996 1998 $(document).find('#ays_poll_answer_img_height').val(imageHeight);
@@ -2081,8 +2083,9 @@
2081 2083 $(document).find('.apm-title-box h5').css({
2082 2084 "font-size" : titleFontSize + "px",
2083 2085 "font-weight" : titleFontWeight,
2084 2086 "text-align" : titleAlignment,
2087 + "text-transform" : titleTextTransform,
2085 2088 });
2086 2089 if(viewType == 'list'){
2087 2090 $(document).find('.grid_column_count').hide(250);
2088 2091 answersCont.removeClass('ays_poll_grid_view_container');
@@ -2174,9 +2177,9 @@
2174 2177 buttonsCont.hide(200);
2175 2178 }
2176 2179 });
2177 2180
2178 - $(document).find('.ays-poll-question-tab-all-filter-button-top, .ays-poll-question-tab-all-filter-button-bottom').on('click', function(e) {
2181 + $(document).find('.ays-poll-question-tab-all-filter-button-top, .ays-poll-question-tab-all-filter-button-bottom, .description-filter-apply-top, .description-filter-apply-bottom').on('click', function(e) {
2179 2182 e.preventDefault();
2180 2183 var $this = $(this);
2181 2184 var parent = $this.parents('.tablenav');
2182 2185
@@ -2191,8 +2194,9 @@
2191 2194 top_or_bottom = 'bottom';
2192 2195 }
2193 2196
2194 2197 var catFilter = $(document).find('select[name="filterby-'+ top_or_bottom +'"]').val();
2198 + var catDescFilter = $(document).find('select[name="filterbyDescription-'+ top_or_bottom +'"]').val();
2195 2199 var authorFilter = $(document).find('select[name="filterbyauthor-'+ top_or_bottom +'"]').val();
2196 2200 var typeFilter = $(document).find('select[name="filterbytype-'+ top_or_bottom +'"]').val();
2197 2201 var link = location.href;
2198 2202
@@ -2201,8 +2205,14 @@
2201 2205 what: 'filterby',
2202 2206 value: catFilter
2203 2207 });
2204 2208 }
2209 + if (typeof catDescFilter != "undefined") {
2210 + link = catFilterForListTable(link, searchValue, {
2211 + what: 'filterbyDescription',
2212 + value: catDescFilter
2213 + });
2214 + }
2205 2215 if (typeof authorFilter != "undefined") {
2206 2216 link = catFilterForListTable(link, searchValue, {
2207 2217 what: 'filterbyauthor',
2208 2218 value: authorFilter
@@ -2225,10 +2235,11 @@
2225 2235 for(var i = 0; i < linkModified.length; i++){
2226 2236 if ( linkModified[i].split("=")[0] == "ays_result_tab" ) {
2227 2237 linkModified.splice(i, 1, "ays_result_tab=poststuff");
2228 2238 }
2229 - if(linkModified[i].split("=")[0] == options.what){
2239 + if(linkModified[i].split("=")[0] == options.what || linkModified[i].split("=")[0] == 'paged'){
2230 2240 linkModified.splice(i, 1);
2241 + i--;
2231 2242 }
2232 2243 }
2233 2244 linkModified = linkModified.join('&');
2234 2245 if (typeof searchValue != 'undefined' && searchValue != '') {
@@ -2238,10 +2249,11 @@
2238 2249 }else{
2239 2250 var linkModifiedStart = link.split('?')[0];
2240 2251 var linkModified = link.split('?')[1].split('&');
2241 2252 for(var i = 0; i < linkModified.length; i++){
2242 - if(linkModified[i].split("=")[0] == options.what){
2253 + if(linkModified[i].split("=")[0] == options.what || linkModified[i].split("=")[0] == 'paged'){
2243 2254 linkModified.splice(i, 1);
2255 + i--;
2244 2256 }
2245 2257 }
2246 2258 linkModified = linkModified.join('&');
2247 2259 if (typeof searchValue != 'undefined' && searchValue != '') {
@@ -3197,8 +3209,9 @@
3197 3209 $(document).find('#ays_poll_title_font_weight').val('normal').change();
3198 3210 $(document).find('#ays_poll_title_font_weight_mobile').val('normal').change();
3199 3211 $(document).find('#ays_poll_title_alignment').val('center').change();
3200 3212 $(document).find('#ays_poll_title_alignment_mobile').val('center').change();
3213 + $(document).find('#ays_poll_title_text_transform').val('none').change();
3201 3214 $(document).find("#ays_poll_enable_title_text_shadow").prop('checked' , false).change();
3202 3215 $(document).find('input#ays-poll-icon-size').val('24').change();
3203 3216 $(document).find('input#ays-poll-width').val('0').change();
3204 3217 $(document).find('input#ays_poll_width_for_mobile').val('0').change();