| @@ -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 != '') { |
| @@ -3186,10 +3205,13 @@ | ||
| 3186 | 3205 | $(document).find('#ays_answers_view').val('list').change(); |
| 3187 | 3206 | $(document).find("#ays_poll_answers_box_shadow_enable").prop('checked' , false).change(); |
| 3188 | 3207 | $(document).find('input#ays_poll_title_font_size').val('20').change(); |
| 3189 | 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(); | |
| 3190 | 3211 | $(document).find('#ays_poll_title_alignment').val('center').change(); |
| 3191 | 3212 | $(document).find('#ays_poll_title_alignment_mobile').val('center').change(); |
| 3213 | + $(document).find('#ays_poll_title_text_transform').val('none').change(); | |
| 3192 | 3214 | $(document).find("#ays_poll_enable_title_text_shadow").prop('checked' , false).change(); |
| 3193 | 3215 | $(document).find('input#ays-poll-icon-size').val('24').change(); |
| 3194 | 3216 | $(document).find('input#ays-poll-width').val('0').change(); |
| 3195 | 3217 | $(document).find('input#ays_poll_width_for_mobile').val('0').change(); |