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 +43 -5 6.3.3 → 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_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
@@ -1933,8 +1933,9 @@
1933 1933 var answerDefaultGap = "10";
1934 1934 var answerDefaultFontSize = "16";
1935 1935 var answerDefaultFontSizeMobile = "16";
1936 1936 var titleDefaultFontSize = "20";
1937 + var titleDefaultFontWeight = "normal";
1937 1938 var answersBorderRadiusDefault = "0";
1938 1939
1939 1940 // Boxes
1940 1941 var imageBoxes = $(document).find('.box-apm .ays-poll-answer-image-live');
@@ -1976,8 +1977,11 @@
1976 1977 var checkTextType = $(document).find('.box-apm.text-poll').length > 0 ? true : false;
1977 1978 // Title font size
1978 1979 var titleFontSizeBox = $(document).find("#ays_poll_title_font_size");
1979 1980 var titleFontSize = titleFontSizeBox.val();
1981 + // Title font weight
1982 + var titleFontWeightBox = $(document).find("#ays_poll_title_font_weight");
1983 + var titleFontWeight = titleFontWeightBox.val();
1980 1984 // Poll text type placeholder
1981 1985 var textPlaceholder = $(document).find("#ays_poll_text_type_placeholder");
1982 1986 var textPlaceholderVal = textPlaceholder.val();
1983 1987 $(document).find('.ays-poll-text-type-fields').attr('placeholder' , textPlaceholderVal);
@@ -1985,8 +1989,10 @@
1985 1989 'display': 'flex',
1986 1990 });
1987 1991 // Title alignment
1988 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();
1989 1995
1990 1996 if(parseInt(imageHeight) < 0){
1991 1997 imageHeight = 0;
1992 1998 $(document).find('#ays_poll_answer_img_height').val(imageHeight);
@@ -2028,8 +2034,10 @@
2028 2034 answersMarginVal = answerDefaultGap;
2029 2035 answerFontSize = answerDefaultFontSize;
2030 2036 answerFontSizeMain.val(answerDefaultFontSize);
2031 2037 answerFontSizeMobileMain.val(answerDefaultFontSize);
2038 + titleFontWeight = titleDefaultFontWeight;
2039 + titleFontWeightBox.val(titleDefaultFontWeight);
2032 2040 answersBorderRadius = answersBorderRadiusDefault;
2033 2041 answersBorderRadiusMain.val(answersBorderRadiusDefault);
2034 2042 }
2035 2043 // Image Changes
@@ -2073,9 +2081,11 @@
2073 2081 titleFontSizeBox.val(0);
2074 2082 }
2075 2083 $(document).find('.apm-title-box h5').css({
2076 2084 "font-size" : titleFontSize + "px",
2085 + "font-weight" : titleFontWeight,
2077 2086 "text-align" : titleAlignment,
2087 + "text-transform" : titleTextTransform,
2078 2088 });
2079 2089 if(viewType == 'list'){
2080 2090 $(document).find('.grid_column_count').hide(250);
2081 2091 answersCont.removeClass('ays_poll_grid_view_container');
@@ -2167,9 +2177,9 @@
2167 2177 buttonsCont.hide(200);
2168 2178 }
2169 2179 });
2170 2180
2171 - $(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) {
2172 2182 e.preventDefault();
2173 2183 var $this = $(this);
2174 2184 var parent = $this.parents('.tablenav');
2175 2185
@@ -2184,8 +2194,9 @@
2184 2194 top_or_bottom = 'bottom';
2185 2195 }
2186 2196
2187 2197 var catFilter = $(document).find('select[name="filterby-'+ top_or_bottom +'"]').val();
2198 + var catDescFilter = $(document).find('select[name="filterbyDescription-'+ top_or_bottom +'"]').val();
2188 2199 var authorFilter = $(document).find('select[name="filterbyauthor-'+ top_or_bottom +'"]').val();
2189 2200 var typeFilter = $(document).find('select[name="filterbytype-'+ top_or_bottom +'"]').val();
2190 2201 var link = location.href;
2191 2202
@@ -2194,8 +2205,14 @@
2194 2205 what: 'filterby',
2195 2206 value: catFilter
2196 2207 });
2197 2208 }
2209 + if (typeof catDescFilter != "undefined") {
2210 + link = catFilterForListTable(link, searchValue, {
2211 + what: 'filterbyDescription',
2212 + value: catDescFilter
2213 + });
2214 + }
2198 2215 if (typeof authorFilter != "undefined") {
2199 2216 link = catFilterForListTable(link, searchValue, {
2200 2217 what: 'filterbyauthor',
2201 2218 value: authorFilter
@@ -2218,10 +2235,11 @@
2218 2235 for(var i = 0; i < linkModified.length; i++){
2219 2236 if ( linkModified[i].split("=")[0] == "ays_result_tab" ) {
2220 2237 linkModified.splice(i, 1, "ays_result_tab=poststuff");
2221 2238 }
2222 - if(linkModified[i].split("=")[0] == options.what){
2239 + if(linkModified[i].split("=")[0] == options.what || linkModified[i].split("=")[0] == 'paged'){
2223 2240 linkModified.splice(i, 1);
2241 + i--;
2224 2242 }
2225 2243 }
2226 2244 linkModified = linkModified.join('&');
2227 2245 if (typeof searchValue != 'undefined' && searchValue != '') {
@@ -2231,10 +2249,11 @@
2231 2249 }else{
2232 2250 var linkModifiedStart = link.split('?')[0];
2233 2251 var linkModified = link.split('?')[1].split('&');
2234 2252 for(var i = 0; i < linkModified.length; i++){
2235 - if(linkModified[i].split("=")[0] == options.what){
2253 + if(linkModified[i].split("=")[0] == options.what || linkModified[i].split("=")[0] == 'paged'){
2236 2254 linkModified.splice(i, 1);
2255 + i--;
2237 2256 }
2238 2257 }
2239 2258 linkModified = linkModified.join('&');
2240 2259 if (typeof searchValue != 'undefined' && searchValue != '') {
@@ -3025,12 +3044,25 @@
3025 3044 });
3026 3045
3027 3046 $(document).find('.ays_poll_layer_button').on('click',function(){
3028 3047 $('.ays_poll_layer_container').css({'position':'unset' , 'display':'none'});
3048 + $(document.body).removeClass('ays-poll-modal-open');
3029 3049 $(document).find('.ays-poll-show-result-chart-google').prop("checked", true);
3030 3050
3031 3051 checkType($(this).attr("data-type"));
3052 +
3053 + // var $checklistPanel = $(document).find('.ays-poll-checklist-panel');
3054 + // if ($checklistPanel.length > 0) {
3055 + // $checklistPanel.show();
3056 + // }
3032 3057 })
3058 +
3059 + // Add body class when modal is visible
3060 + $(document).ready(function(){
3061 + if($('.ays_poll_layer_container').is(':visible')) {
3062 + $(document.body).addClass('ays-poll-modal-open');
3063 + }
3064 + });
3033 3065 // CHOOSE POLL TYPE FROM MODAL END
3034 3066
3035 3067 $(document).find('.ays-poll-open-polls-list').on('click', function(e){
3036 3068 $(this).parents(".ays-poll-subtitle-main-box").find(".ays-poll-polls-data").toggle('fast');
@@ -3173,10 +3205,13 @@
3173 3205 $(document).find('#ays_answers_view').val('list').change();
3174 3206 $(document).find("#ays_poll_answers_box_shadow_enable").prop('checked' , false).change();
3175 3207 $(document).find('input#ays_poll_title_font_size').val('20').change();
3176 3208 $(document).find('input#ays_poll_title_font_size_mobile').val('20').change();
3209 + $(document).find('#ays_poll_title_font_weight').val('normal').change();
3210 + $(document).find('#ays_poll_title_font_weight_mobile').val('normal').change();
3177 3211 $(document).find('#ays_poll_title_alignment').val('center').change();
3178 3212 $(document).find('#ays_poll_title_alignment_mobile').val('center').change();
3213 + $(document).find('#ays_poll_title_text_transform').val('none').change();
3179 3214 $(document).find("#ays_poll_enable_title_text_shadow").prop('checked' , false).change();
3180 3215 $(document).find('input#ays-poll-icon-size').val('24').change();
3181 3216 $(document).find('input#ays-poll-width').val('0').change();
3182 3217 $(document).find('input#ays_poll_width_for_mobile').val('0').change();
@@ -3253,9 +3288,11 @@
3253 3288 }
3254 3289
3255 3290 // Select message vars galleries page | Start
3256 3291 $(document).find('.ays-poll-message-vars-icon').on('click', function(e){
3257 - $(this).parents(".ays-poll-message-vars-box").find(".ays-poll-message-vars-data").toggle('fast');
3292 + var messageVarsBox = $(this).parents(".ays-poll-message-vars-box");
3293 + messageVarsBox.toggleClass("ays-poll-message-vars-open");
3294 + messageVarsBox.find(".ays-poll-message-vars-data").toggle('fast');
3258 3295 });
3259 3296
3260 3297 $(document).on( "click" , function(e){
3261 3298 if($(e.target).closest('.ays-poll-message-vars-box').length != 0){
@@ -3261,8 +3298,9 @@
3261 3298 if($(e.target).closest('.ays-poll-message-vars-box').length != 0){
3262 3299 }
3263 3300 else{
3264 3301 $(document).find(".ays-poll-message-vars-box .ays-poll-message-vars-data").hide('fast');
3302 + $(document).find(".ays-poll-message-vars-box").removeClass("ays-poll-message-vars-open");
3265 3303 }
3266 3304 });
3267 3305
3268 3306 $(document).find('.ays-poll-message-vars-each-data').on('click', function(e){