DeWalt DT10399-QZ TCT Extreme Circular Blade 190mm x 30mm 24T (3 Pack) | Toolden

Toolden is proud to offer free delivery on all orders to UK Mainland addresses for orders over the value of £50*

Your delivery method is chosen based on the value, weight and size of your total order. Orders will be shipped via Royal Mail, DPD or FedEx. Tracking information and delivery notifications are available directly from the courier.

We aim to dispatch all orders within 2-3 working days, however dispatch times can vary so each product has an estimated dispatch time for a more accurate guidance. We also offer direct delivery from some of our partnered manufacturers.

All UK mainland customers should expect to receive their orders no longer than 5 working days after their order is placed. If your goods have not been received after 6 working days, please email [email protected] and we will investigate further. Please allow extended time for European deliveries.

*Certain heavier/bulkier items might incur additional charges. The additional fee will be clearly stated at the checkout, before placing the order.

Mistakes happen, we’re all human! You may return most new, unopened items within 14 days of delivery for a full refund. We will cover the return shipping costs ONLY if the return is a result of our error and arrange for collection at a time convenient to yourself.

It is advisable to inspect the goods prior to signing for delivery. If you can see any damage whatsoever to the packaging please sign for the goods as damaged. If this is not possible please ensure you sign for the goods unexamined to allow us to take any claims up with our deliver partners if necessary.

All tools come with a manufacturers warranty. Most of our product pages have a link to the warranty procedure for that manufacturer and we encourage you to follow the instructions on these pages which will normally direct you to the manufacturers helpline. This is normally the fastest way of getting your warranty problem resolved.

If your order has been delivered damaged, is unwanted or you’ve ordered the wrong item:

If your item becomes faulty

Under guidelines set to us by manufacturers, we will advise you of the nearest repiar agent which is free of charge under your manufacturer’s warranty – please remember to register your item on the manufacturer’s website for the additional 2 years warranty. Please also see our Warranty section on the website for futher information. We do not accept returns of damaged or faulty items regardless of timescale. These will always need to be taken to an authorised repair agent or the manufacturer.

Please note that any items returned that have been altered, modified, defaced or undergone heavy usage may not be eligible for a full refund or replacement.

Please allow a maximum of four days to a week for your refund to process. It is often sooner than this however different banks process these with varying levels of efficiency.

If you need to return an item, please go log-in to your account and go to the ‘Completed’ section of your account page. This will show all completed orders and from here, you will be able to select the option for return and complete the form.

Please see the Royal Mail shipping restrictions to best select the option for return and complete the form.

This content was originally published here.

EP 35 | 🔥LOVE & FATE 🔥| War God – Cute Bird | #chinesedrama #tamilreview #storyneramtamil

EP 35 | 🔥LOVE & FATE 🔥| War God – Cute Bird | #chinesedrama #tamilreview #storyneramtamil

* Copyright Disclaimer Under Section 107 of the Copyright Act 1976, allowance is made for “fair use” for purposes such as criticism, commenting, news reporting, teaching, scholarship, and research. Fair use is a use permitted by copyright statute that might otherwise be infringing. Non-profit, educational or personal use tips the balance in favor of fair use.

-This video has no negative impact on the original works (It would actually be positive for them)
-This video is also for teaching purposes.
-It is not trans-formative in nature.
-I only used bits and pieces of videos to get the point across where necessary.

We make these videos with the intention of educating others in a motivational/inspirational form. We do not own the clips and music we use in most cases. Our understanding is that it is in correlation to Fair Right Use, however given that it is open to interpretation, if any owners of the content clips would like us to remove the video, we have no problem with that and will do so as fast as possible.
We believe these videos are fair use because:

They are trans-formative in a positive sense, we take clips from various sources to help create an atmospheric feeling that will help people in hard situations in their life.

We also do not wish to use the heart of any piece of work that would perhaps decrease the market value of the original content, if anything we hope to promote the content so that people can reach out and subsequently increase the market value.

#ChineseSeries #koreanseries #tamilreview #XiaoZhan #WangYibo #ChinaDrama #SeriesTamil #TamilSeries #koreanSeries #tamilexplanation #koreanseriesexplanation #koreanmovie #koreantamilmovies #chinadrama #bldrama #storytime #storytimetamil #storytimeentertainment

story time review tamil channal
chinese drama tamil review
korean drama tamil review
chinese drama tamil review
thai drama tamil review
Series Detailed Explanation
korean love series in tamil
chinese fantasy series in tamil
King’s woman series in tamil
flower of evil in tamil
romantic thriller series in tamil
eternal love in tamil
ten miles of peach blossoms in tamil
Hospital playlist in tamil
Long Ballad in Tamil
Love And Destiny In Tamil

అమరావతి పాదయాత్రలో రాయి పడినా డీజీపీ దే భాద్యత..పోలీసులకు షాక్ ఇచ్చిన హై కోర్ట్ | Political Chess

#amaravati #apdgp #aphighcourt
అమరావతి పాదయాత్రలో రాయి పడినా డీజీపీ దే భాద్యత..పోలీసులకు షాక్ ఇచ్చిన హై కోర్ట్ | Political Chess
Mahaa News Live | Latest Telugu News Live | Mahaa News Telugu

Mahaa News Live is a 24-hour Telugu News Channel Covering Mainly News & Events In Andhra Pradesh & Telangana. Tune In For Current Political, Sports, Health, Crime, Business, Entertainment & Weather Reports. Watch Live Debates, Exclusive Live Interviews With People Who Matter. Stay Updated With Mahaa News Live on YouTube For All The Latest News From India and Across The World.

#MahaaNews #MahaaNewsLive #MahaaTeluguNews

For More Latest Updates On The News:

Watch Mahaa News Live Here: https://youtu.be/3IinZkCiyyE

Subscribe to Mahaa News Channel: https://www.youtube.com/mahaanews

Like us on Facebook: https://facebook.com/Mahaanews

Follow us on Twitter: https://twitter.com/MahaaOfficial

Follow us on Instagram: https://www.instagram.com/mahaanewstv…

Watch Mahaa News, a 24-hour Telugu News Broadcaster, Dedicated To Reporting News From Across Telangana, Andhra Pradesh and Other Parts Of The World Through Live Reports, Breaking News, Sports Updates, Weather Reports, Entertainment, Culture, Business Trends, Exclusive Interviews and Current Affairs.

[마디마디] 최고의 어깨 운동❗️3일만 하면 어깨 무조건 좋아져요😉

😱 It’s To LAUGH When Watching This Video Of The FUNNIEST CATS On Earth 😱- Funny Cats Life

Funniest Cats 😹 – Don’t try to hold back Laughter 😂

😍 Watch more cute animals! https://youtube.com/playlist?list=PLH…

🔔 Subscribe to watch the best, cutest animal videos! https://www.youtube.com/channel/UCYPrd7A27nLhQONcCIfFTaA/?sub_confirmation=1

🎶 Music used from Kevin MacLeod (incompetech.com)
Licensed under Creative Commons: By Attribution 3.0

Wo ist die Flasche? – Pastewka

Nach vier Staffeln in Annette Friers TV-Show ist Bastian nicht nach Champagner zumute.

Die ganze Folge auf MySpass: https://www.myspass.de/28947

#pastewka

Pastewka – Die 8. Staffel auf DVD
https://amzn.to/2REVkSv ¹

¹Affiliate Link

Geld verdienen mit Katzenfotos? – Ladykracher

Der Traumjob: Am Handy zocken und damit Kohle verdienen! Das einzige Problem: Die Chefin hat sehr hohe Ansprüche.

Die ganze Folge auf MySpass: http://www.myspass.de/12289

#Ladykracher_Staffel8_Folge8

Dish: Bananas and also Cream Bundt Cake

Bananas as well as Cream Bundt Cake

ACTIVE INGREDIENTS:

1/3 mug strong reducing
1 1/4 mugs granulated sugar
2 eggs
1 tsp vanilla essence
3 tool ripe bananas, mashed
2 mugs versatile flour
1 1/4 tsps cooking powder
1 tsp cooking soft drink
1/2 tsp salt
1 mug (8 ounces) sour lotion *.
3/4 mug cut pecans or walnuts.

PREP WORK:.

In a blending dish, lotion with each other reducing as well as sugar. Include eggs, individually, up until well combined; mix in vanilla essence as well as bananas.

In a different dish, integrate flour, cooking powder, cooking soft drink and also salt. Contribute to banana blend at the same time with sour lotion. Mix in walnuts.

Put right into a floured and also greased 10-inch Bundt frying pan. Bake at 350 levels F for 50 mins or till done. Great, after that dirt with confectioners’ sugar prior to offering.

Return: 12 portions.

In a different dish, integrate flour, cooking powder, cooking soft drink as well as salt. Include to banana combination at the same time with sour lotion. Put right into a floured and also greased 10-inch Bundt frying pan. Bake at 350 levels F for 50 mins or till done.

Edelweiss+

[]
Edelweiss+ rnPublishers may purchase the top banner spot in the weekly newsletter. Click here to select your preferred week, purchase the ad placement, and upload your file. Banners should be 150px by 600px in size.rn

rnLearn More”,”featured_peer_reviews”:”Featured Peer Reviews”,”feb”:”Feb”,”feedback”:”feedback”,”filter”:”Filter”,”finished_reading”:”Finished Reading”,”fresh”:”Fresh”,”frontlist”:”Frontlist”,”ft_promo_help”:”The weekly newsletter is sent to over 90,000 Edelweiss users every Tuesday. It includes a listing of new review copy and catalog posted to Edelweiss within the past week, and it is very popular with Edelweiss users!rn

rnFeatured titles are placed above the listings of new review copies and catalogs and may be purchased by publishers. A featured title automatically includes the cover image and first 500 words of the title summary within Edelweiss.rn

rnThere are only nine spots available in every week’s newsletter. Select the week you are interested in and follow the prompts to purchase your featured title spot!rn

rnLearn More”,”gap_from_average”:”Gap From Average”,”general_pub_subrights_info”:”General Publisher Subrights Information”,”go_to_open_editor”:”Go to open editor”,”go_to_this_analysis_x”:”Click here to go to this analysis and select a {searchFilterDisplayName} “,”hide_all_cross_store_grids”:”Hide all cross store grids”,”high”:”High”,”high_turn”:”High Turn”,”highly_anticipating”:”Highly Anticipating”,”historical_sales”:”Historical Sales”,”holds_ratio”:”Holds Ratio”,”if_you_join_every_user_in_your_organization_will_join_this_group”:”If you join every user in your organization will join too. Do you want to continue?”,”if_you_join_every_user_in_your_organization_will_join_this_group_name”:”If you join every user in your organization will join “,”if_you_leave_every_user_in_your_organization_will_leave_from_group_name”:”If you leave, every user in your organization will be removed from”,”if_you_leave_every_user_in_your_organization_will_leave_this_group”:”Selecting OK will remove all users in your organization from this group.”,”incomplete_fields_x”:”Incomplete fields: {incomplete}”,”indicate_recommendation”:”You must indicate whether you’d recommend this title or not.”,”indicate_role”:”Please indicate what type of role you’re reviewing this title as.”,”int_promo_help”:”Inserts are banner ads that appear above title listings when users are viewing a list of titles. They help to draw viewers’ attention and generate interest. Inserts will remain for as long as the title is in Edelweiss+!

rnBy clicking here, you can purchase an insert for $200 and upload the file immediately. Files should be no more than 200px high and either PNG or GIF format with a maximum size of 300KB.rn

rnLearn More”,”internal”:”Internal”,”invalid_value”:”Invalid value”,”item”:”Item”,”items”:”Items”,”items_in_campaign”:”The number of items (titles, events or collections) in this campaign”,”jan”:”Jan”,”jul”:”Jul”,”jun”:”Jun”,”last_12_months”:”Last 12 months”,”last_checked_out”:”Last Checked Out”,”last_circed_date”:”Last Circed Date”,”last_date_received”:”Last Date Received”,”last_received_date”:”Last Received Date”,”last_sold_date”:”Last sold date”,”less”:”Less”,”lifetime_circ”:”Lifetime Circ”,”loading”:”Loading”,”loading_email_notification_frequency”:”Loading email notification frequency”,”logging_out”:”Logging out”,”login_to_perform_action”:”You must be logged in to perform this action.”,”low”:”Low”,”low_turn”:”Low Turn”,”manage_comparable_products”:”Manage Comparable Products”,”mar”:”Mar”,”markup_editor_close_warning”:”Performing this action will close the current markup note editor. Any unsaved changes will be lost.”,”markup_note”:”Markup Note”,”may”:”May”,”medium”:”Medium”,”medium_turn”:”Medium Turn”,”message_error”:”There was an error saving your message.”,”message_saved”:”Message saved.”,”message_was_sent”:”Message was sent”,”more”:”More”,”move”:”Move”,”move_item”:”Move Item”,”mtnb_promo_help”:”Monthly newsletters provide targeted audiences with product updates, training tips, upcoming events, and other news. Select from the bookseller, librarians, or UK newsletters.

rnLearn Morern”,”much_love”:”Much Love!”,”must_select_one_or_more”:”You must select one or more items”,”my_backlist”:”My Backlist”,”my_frontlist”:”My Frontlist”,”my_titles”:”My Titles”,”my_work”:”My Work”,”network_connection”:”Network Connection”,”never_owned”:”Never Owned”,”never_stocked”:”Never Stocked”,”no”:”No”,”no_active_campaigns”:”No Active Campaigns”,”no_circulation”:”No Circulation”,”no_filter”:”No Filter”,”no_location_selected”:”No location selected”,”no_message”:”No message was provided”,”no_sales”:”No Sales”,”no_titles_meet_search_criteria”:”There are no titles that meet the search criteria”,”not_enough_data_objects”:”There are not enough data objects for a useful comparison”,”not_in_stock”:”Not In Stock”,”not_owned”:”Not Owned”,”not_set”:”Not Set”,”note”:”Note”,”note_all_location_in_category_comparison”:”This analysis applies only to individual locations. Choose a branch from the list above to run this comparison.”,”notes_visible_to_org”:”Notes that you add here are visible to other users in your account”,”notes_visible_to_org_and_reps”:”Notes that you add here are visible to your reps and to other users in your account”,”nothing_to_save”:”There was nothing to save”,”nov”:”Nov”,”oct”:”Oct”,”oh_abbreviation”:”OH”,”on_hand”:”On Hand”,”on_order”:”On Order”,”oo_abbreviation”:”OO”,”open_collection”:”Open Collection”,”order_alert_mark_complete”:”Please consider marking this order as Completed to remove it from your Active Order list. If you want to order other items please create a new order.”,”order_alert_summited_a”:”WARNING: This order has already been submitted.”,”order_alert_summited_b”:”Changes made to this order will not be updated in your account’s order management system.”,”order_alert_summited_rep_a”:”WARNING: This order has already been submitted by your rep.”,”order_alert_summited_rep_b”:”Changes made to this order will not be updated in the publisher’s order management system.”,”order_alert_summited_rep_c”:”If you need to change this order, please notify your rep.”,”ordered”:”Ordered”,”over_an_hour_ago”:”Over 1 hour ago”,”over_x_hours_ago”:”Over {0} hours ago”,”percent_collection”:”% Collection”,”percent_of_peers_circulated”:”% of Peers Circulated”,”percent_of_peers_on_order”:”% of Peers On Order”,”percent_of_peers_sold”:”% of Peers Sold”,”percent_of_peers_stocked”:”% of Peers Stocked”,”percent_of_total”:”% Of Total”,”percent_total_circulation”:”% Total Circulation”,”percent_total_inventory”:”% Total Inventory”,”percent_total_sales”:”% Total Sales”,”percent_total_unit_sales”:”% Total Unit Sales”,”please_close_or_save_current_editor_before_continuing”:”Please close or save the current editor before continuing”,”please_select_an_item_to_move”:”Please select an item to move”,”please_select_dates_reserve”:”Please select one or more dates to reserve”,”point_of_sale_category”:”Point-Of-Sale Category”,”pos_category”:”POS Category”,”previous_year”:”Previous year”,”projected_month”:”Projected Month”,”projected_value”:”Projected Value”,”promo_signup”:”Promotional Signup”,”provided_value_must_be_non_negative_integer”:”The provided value must be a non-negative integer.”,”pub_date”:”Pub Date”,”pub_message”:”Publisher Message”,”publisher_name”:”Publisher Name”,”rating_saved”:”Rating successfully saved.”,”rationale”:”Rationale”,”rc_promo_help”:”Review copies are a great way to generate buzz, obtain reviews, and encourage ordering!

Edelweiss provides options to manage and distribute both digital and print review copies.

rnIf your organization subscribes to these add-on modules, you can activate titles from here.

rnLearn More”,”refreshing”:”Refreshing…”,”registration_info_saved”:”Registration information has been saved successfully.”,”remove”:”Remove”,”remove_from”:”Remove From”,”requested_quantity”:”Requested Quantity”,”reset”:”Reset”,”review_deleted_OK”:”Review successfully deleted.”,”review_submissions”:”Review Submissions”,”reviews”:”Reviews”,”sales_at_selected_location_given_time_frame”:”Sales at Selected Location, Given Time Frame”,”sales_rights”:”Sales Rights”,”save”:”Save”,”save_changes”:”Save Changes”,”saving”:”Saving”,”search_by_isbn”:”Search by ISBN”,”search_only_my_publishers_by_isbn”:”Search only my publishers by ISBN”,”search_only_my_titles_by_isbn”:”Search only my titles by ISBN”,”select_all”:”Select All”,”select_at_least_one_title”:”Please select at least one title”,”select_folder”:”Please select a folder”,”select_state”:”Select State”,”select_users_to_transfer”:”Select User(s) To Transfer”,”select_y_to_analyze”:”Select a {searchFilterDisplayName} to analyze”,”select_your_language_preference”:”Select your language preference”,”selected”:”Selected”,”selecting_continue_will_cause_any_unsaved_changes_to_be_lost”:”Selecting continue will cause any unsaved changes to be lost”,”semicolon_or_comma_keywords_from”:”; or, keywords from”,”send”:”Send”,”sep”:”Sep”,”series_plural”:”series”,”set_default_address”:”Set Default Address”,”set_default_address_prompt”:”Are you sure you want to make {0} your default address?”,”shared”:”Shared”,”shelf_days”:”Shelf Days”,”shelf_days_is_combined_number_days_all_copies_on_shelf_no_activity”:”‘Shelf Days’ is the combined number of days all copies of this title have been on the shelf with no activity”,”shelf_days_takes_into_account_number_copies_and_dsla”:”Shelf Days takes into account the number of copies and days since last activity”,”shelves”:”Shelves”,”show_all_cross_store_grids”:”Show all cross store grids”,”show_all_x”:”Show All {totaltitles}”,”sign_up_request_processing”:”New User Account Request”,”stable”:”Stable”,”stale”:”Stale”,”store_region”:”Store Region”,”submit”:”Submit”,”submit_banner_no_image_no_url”:”You are making a newsletter reservation without uploading artwork. Please remember to upload artwork here before your reserved date arrives.”,”submitted_on”:”Submitted on”,”subscribe”:”Subscribe”,”subtitle_plural”:”subtitles”,”success”:”Success”,”super_category”:”Super Category”,”switch_edit_to_save”:”You must switch to ‘Your Edit’ to save.”,”tag_must_be_lower_case”:”Tag must be lower case.”,”thank_you_we_may_contact_you_with_questions”:”Thank you! We may contact you if we have questions.”,”the_item_type_with_item_name_has_been_deleted”:”The {itemType} “{itemName}” has been deleted.”,”the_last_digest_was_run_on”:”The last digest was run on {0}”,”the_next_digest_will_run_on”:”The next digest will run on {0}”,”the_server_was_too_busy_to_process_your_request”:”The server was too busy to process your request, please try again”,”there_are_no_changes_to_save”:”There are no changes to save”,”timeout”:”Timeout”,”title”:”Title”,”title_plural”:”titles”,”titles”:”Titles”,”top_performing_version_within_family”:”Top performing version within the family”,”total_items_circd”:”Total Items Circ’d”,”total_units_ordered”:”Total Units Ordered”,”total_units_sold”:”Total Units Sold”,”total_units_stocked”:”Total Units Stocked”,”turn_calculation_note_for_library”:”Turn (turnover) is calculated as the number of items circulated, over the average items owned during the time frame, annualised”,”turn_calculation_note_for_retailer”:”Turn (turnover) is calculated as gross sales over the average inventory value for the time frame, annualised”,”type_delete_to_confirm_user_deletion”:”Type delete to confirm user deletion”,”unselect_all”:”Unselect All”,”unsubscribe”:”Unsubscribe”,”untagged_titles”:”Untagged Titles”,”upload_complete”:”Upload Complete”,”uploading_file”:”Uploading File”,”user_agreement”:”User Agreement”,”user_transfer_from_cant_be_to”:”The ‘From’ account cannot be the same as the ‘To’ account dude.”,”user_transfer_select_account”:”Select a second account– and then you can switch the ‘From / To’ relationship”,”value_must_be_greater_than_0″:”The value must be a whole number greater than or equal to 0.”,”value_must_be_greater_than_1″:”The value must be a whole number greater than or equal to 1.”,”versions_of_this_title_on_hand”:”versions of this title On Hand”,”versions_of_this_title_on_order”:”versions of this title On Order”,”versions_published_within_family”:”Versions published within the family”,”view_online_review_copy”:”View Online Review Copy”,”warning_markup_editor_close”:”Performing this action will close the markup note editor for ISBN {0}. Any unsaved changes will be lost.”,”we_are_always_trying_to_improve_gaps_in_family_data_your_report_helps_quality”:”We’re always trying to improve the connections between different versions of books and other materials (the ‘family’ for a title). Gaps in that family database are often the reason that a title is shown in analytics as not owned. Your report helps the quality of that data for everyone using Edelweiss Analytics.”,”word_of”:”of”,”word_or”:”or”,”x_days_ago”:”{days} days ago”,”x_minutes_ago”:”{minutes} minutes ago”,”x_of_y_titles”:”{stockonlytitles} Of {totaltitles} Titles”,”x_selected”:”{numSelected} Selected”,”x_selected_y_label”:”{numSelected} Selected ( {classLabel} )”,”x_titles_total”:”{totaltitles} Titles Total”,”yes”:”Yes”,”yesterday”:”Yesterday”,”you_approved_more_than_requested_are_you_sure”:”You approved more than the user requested. Are you sure?”,”you_have_unsaved_changes_will_be_lost”:”You have unsaved changes. If you continue the changes will be lost”,”your_note”:”Your Note”,”ytd_circ”:”YTD Circ”}; ePlus.user.culture = ‘en-US’; ePlus.user.currencyCode = ‘USD’; ePlus.modules.paymentControl.setDefaults({ paymentPluginUri: ‘https://payments.edelweiss.plus/Payments/Plugin’, }); CKEDITOR.timestamp = “638030627284002838”; (function (i, s, o, g, r, a, m) { i[‘GoogleAnalyticsObject’] = r; i[r] = i[r] || function () { (i[r].q = i[r].q || []).push(arguments) }, i[r].l = 1 * new Date(); a = s.createElement(o), m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m) })(window, document, ‘script’, ‘//www.google-analytics.com/analytics.js’, ‘ga’); ga(‘create’, ‘UA-6177030-3’, ‘auto’); ga(‘require’, ‘displayfeatures’); ga(‘require’, ‘linkid’); ga(‘set’, ‘&uid’, ‘:’); ga(‘send’, ‘pageview’); window.isTouch = !!(‘ontouchstart’ in window || navigator.maxTouchPoints || navigator.msMaxTouchPoints); window.dashboardExclusionFilters = {}; window.ePlusContextResultTypesMap = {“98875″:[22,21,20,260],”116400″:[106,107,108],”116423″:[2001,2002,2003,2006],”98968″:[73,211,213,212,77,74,75,76,-1,206,90,208,209,200,201,202,203,205,210,71,70,72,207,204,217],”134999”:[4015,4016]}; window.ePlusContextEntityTypeMap = {“98875″:2,”99615″:2,”99616″:2,”116400″:2,”116423″:2,”98968″:1,”134999”:12}; ePlus.user.initializePreferences({“markup”:{“noteFontColor”:null,”noteFontSize”:null,”useInlineEditor”:”true”},”display”:{“showFullMarkupNotes”:null},”fonts”:{“fontOption”:null},”noteToSelf”:{“useInlineEditor”:null}}); $(window).on({ hashchange: onHashChangeEvent, popstate: onPopStateEvent, interaction: onInteractionEvent, scroll: onScrollEvent, resize: resizeThings }); window.hasCommunitiesPrerelease = true; createPublisherSelectMenu(); function reloadCurrentPage() { closeModal(); changePage(window.location.hash); } function pageChange(pageHash, callback) { // Trigger a page interaction event $(window).trigger(‘interaction’, [function () { location.hash = pageHash; if (typeof callback === ‘function’) { location.hashCallback = callback; } }]); } var pageHashes = { login: “#Login”, logout: “#Logout”, signup: “#SignUp”, forgotPassword: “#ForgotPassword” }; function doShowWelcomePage(pageHash, pageHashKey) { return pageHash === ” || pageHash === ‘#’ || pageHashKey === pageHashes.login || pageHashKey === pageHashes.signup || pageHashKey === pageHashes.forgotPassword || isLogout(pageHashKey); } function isLogout(pageHashKey) { return pageHashKey === pageHashes.logout; } function changePage(pageHash, callback) { // Trigger a page interaction event $(window).trigger(‘interaction’, [function () { window.ePlus.app.refreshAppIfDue(); if (typeof pageTracking !== ‘undefined’) { pageTracking.startTrackPage(); } clearPageState(); var pageHashParameters = pageHash.split(“&”); var pageHashPrimary = pageHashParameters[0].split(“=”); var pageHashPrimaryKey = pageHashPrimary[0]; var audience = getUriHashParameter(pageHash, ‘g’); if (audience) { var updateHash = function () { window.doDisableNextHashChangeEvent = true; location.hash = updateUriHashParameter(pageHash, ‘g’, null); }; if (audience !== ‘4400’) { $.ajax({ url: ‘/GetJSONData.aspx?builder=SetUserMarket&audience=’ + audience }).always(function () { updateHash(); location.reload(); }); return; } else { updateHash(); } } if (doShowWelcomePage(pageHash, pageHashPrimaryKey)) { goToWelcomePage(); return; } $(“#menuDiv”).show(); $(“#pageHeader”).show(); $(‘#pageContent’).css(‘min-width’, ”); WebuiPopovers.destroyChildren(‘#interiorPageContent’); if (_.startsWith(pageHash, “#dashboard”)) { window.logPageHit(getEnumValue(“siteContext”, “EPLUS”), getEnumValue(“ePlusSiteArea”, “HOMEPAGE”), ‘1e848327-8b46-4a0e-abed-a755a588de67’); $(“.header_Home”).addClass(“selectedTopMenu”); ePlus.modules.leftNav.closeLeftNav(); window.goToDashboard(); } var doHideSearch = false; switch (pageHashPrimaryKey) { case ‘#InviteResponse’: var actionType = pageHashParameters[1].split(“=”)[1]; if (actionType === “view”) { location.hash = “dashboard”; openUserCenter(0); } else { openInviteConfirmation(pageHash.replace(“#”, “&”)); } break; case ‘#SignUpRequest’: openSignUpRequestProcessing(pageHash.replace(“#”, “&”)); break; case ‘#analytics’: $(“.header_” + pageHashPrimary[1]).addClass(“selectedTopMenu”); var pageHashSecondary = pageHashParameters[1].split(“=”); window.goToAnalyticsDashboard(pageHashPrimary[1], pageHashSecondary[1], true); ePlus.modules.leftNav.closeLeftNav(); break; case ‘#org’: window.loadInProcessDiv(‘Account’, ‘/uc/listviews/controls/ListView_Progress_List.ascx&itemType=2&’ + pageHash.replace(“#”, “”)); break; case ‘#sku’: var url = ‘/GetTreelineControl.aspx?controlName=/uc/listviews/ListHome.ascx&majorPage=6&’ + pageHash.replace(“#”, “”); $(“#interiorPageContent”).load(url, callback); break; case ‘#catalogID’: doHideSearch = _(pageHashParameters).some(function (p) { return p === ‘hideSearch=true’ }); var url = ‘/GetTreelineControl.aspx?controlName=/uc/listviews/ListHome.ascx&majorPage=2&’ + pageHash.replace(“#”, “”); $(“#interiorPageContent”).load(url, callback); break; case ‘#campaignCatalogID’: var url = ‘/GetTreelineControl.aspx?controlName=/uc/listviews/ListHome.ascx&majorPage=8&’ + pageHash.replace(“#”, “”); $(“#interiorPageContent”).load(url, callback); break; case ‘#orderID’: var url = ‘/GetTreelineControl.aspx?controlName=/uc/listviews/ListHome.ascx&majorPage=4&’ + pageHash.replace(“#”, “”); $(“#interiorPageContent”).load(url, callback); break; case ‘#viewID’: window.loadInProcessDiv(‘Titles’, ‘/uc/listviews/controls/ListView_Progress_List.ascx&itemType=1&resultType=100&’ + pageHash.replace(“#”, “”)); break; case ‘#presentationID’: window.loadInProcessDiv(‘Titles’, ‘/uc/listviews/controls/ListView_Progress_List.ascx&itemType=10&resultType=31&’ + pageHash.replace(“#”, “”)); break; case ‘#savedFilters’: $(“.header_” + window.dashType.filters).addClass(“selectedTopMenu”); var url = ‘/GetTreelineControl.aspx?controlName=/uc/listviews/ListHome.ascx&majorPage=7&’ + pageHash.replace(“#”, “”); $(“#interiorPageContent”).load(url, callback); break; case ‘#publisher’: var url = ‘/GetTreelineControl.aspx?controlName=/uc/listviews/ListHome.ascx&majorPage=5&’ + pageHash.replace(“#”, “”); $(“#interiorPageContent”).load(url, callback); break; case ‘#keywordSearch’: var keywords = getUriHashParameter(window.location.hash, ‘q’); var url = ‘/GetTreelineControl.aspx?controlName=/uc/listviews/ListHome.ascx&majorPage=3&keywordString=’ + encodeURIComponent(keywords) + ‘&’ + pageHash.replace(“#”, “”); $(‘#searchKeywords’).val(keywords); $(“#interiorPageContent”).load(url, callback); break; case ‘#dashList’: $(“.header_” + pageHashPrimary[1]).addClass(“selectedTopMenu”); var resultType = ”; if (pageHashParameters.length > 1 && pageHashParameters[1].split(“=”)[0] == “rT”) { resultType = pageHashParameters[1].split(“=”)[1]; history.replaceState(null, null, document.location.pathname + ‘#dashList=’ + pageHashPrimary[1]); } else { resultType = $(“#selectedResult_” + pageHashPrimary[1]).val(); } var itemCount = $(“#resultCount_” + pageHashPrimary[1]).val(); var url = ‘/GetTreelineControl.aspx?controlName=/uc/listviews/ListHome.ascx&majorPage=1&resultType=’ + resultType + ‘&itemCount=’ + itemCount + ‘&’ + pageHash.replace(“#”, “”); $(“#interiorPageContent”).load(url, callback); break; case ‘#drcRequest’: var action = pageHashPrimary.length > 1 ? pageHashPrimary[1] : null; var requestId = getHashValue(“requestId”); var userId = getHashValue(“userId”); var sku = getHashValue(“sku”); if (action && requestId && userId && sku) { openDrcQuickApprove(action, requestId, userId, sku); } else { alert(“Invalid DRC Request Status Admin URL.”); pageChange(“#dashboard”); } break; case ‘#analyticsRegistration’: goToWelcomePage(); break; case ‘#dashboard’: break; default: if (isInvalidPageHashKey(pageHashPrimaryKey)) { goToWelcomePage(); clearUrlHash(); return; } } $(‘.header-search’, ‘#pageHeader’).toggleClass(‘hidden’, doHideSearch); }]); } function isInvalidPageHashKey(pageHashKey) { return _.startsWith(pageHashKey, “#http”); } function clearUrlHash() { history.pushState(”, document.title, window.location.pathname + window.location.search); } $(function () { $(‘.community-navigation’).off(‘click’).on(‘click’, function () { var redirectUrl = ‘https://community.edelweiss.plus/’; window.location = redirectUrl; }); initJsModules(); if (location.hash === “”) { goToWelcomePage(); } else { var pageHashParameters = location.hash.split(“&”); var pageHashPrimary = pageHashParameters[0].split(“=”); if (pageHashPrimary[0] == “#t”) { goToWelcomePage(); } else { changePage(location.hash); } } initCustomDataTableFilters(); checkForAlerts(); ePlus.modules.header.initialize(); ePlus.modules.headerSearch.initialize(); }); function initJsModules() { if (templateCache) templateCache.init(“Hidden”); o.init( false, “Edit Category”, “You cannot have quantities less than -1 in your orders.”, “You must select or create a purchase order before adding titles to one”, “Delete Store Line Item”, “Are you sure you want to delete this line item?”, false ); window.ePlus.modules.support.init(“1f990888-a2f5-4dac-9109-767125cb1f0f”, “Default-ApplicationInsights-EastUS”, “Edelweiss Plus”); window.ePlus.app.init(10800000); window.ePlus.modules.constantContact.setDefaults({ ePlusUri: ‘https://www.edelweiss.plus/’ }); } function checkForAlerts() { } function populateDashTypes() { window.dashType = { drc: 0, shelves: 1, catalog: 2, catalog_titles: 11, order: 6, order_titles: 13, tag: 3, buzz: 9, people: 5, publisher: 4, search: 8, event: 12, review: 50, filters: 500, analytics_BA_Home: 300, analytics_LA_Home: 200, analytics_KPI_Home: 100 }; } function populateUserPrefTypes() { var prefTypes = { display: ‘display’, markup: ‘markup’ } if (window.ePlus.user && window.ePlus.user.userPrefType) { window.ePlus.user.userPrefType = prefTypes; } else { window.userPrefType = prefTypes; } } function populateUserPrefNames() { var prefNames = { showAllMarkups: ‘showAllMarkups’, showAllSuggestions: ‘showAllSuggestions’, showMarkupArea: ‘showMarkupArea’, showOrderArea: ‘showOrderArea’, showForecast: ‘showForecast’, showFullMarkupNotes: ‘showFullMarkupNotes’, showSharedMarkupNotes: ‘showSharedMarkupNotes’, showPersonalNotes: ‘showPersonalNotes’, selectedAccount: ‘selectedAccount’ }; if (window.ePlus.user && window.ePlus.user.userPrefName) { window.ePlus.user.userPrefName = prefNames; } else { window.userPrefName = prefNames; } } function goToDashboard() { $(“#pageURL”).val(“”); $(“#menuDiv”).show(); $(“#pageHeader”).show(); window.scrollTo(0, 0); window.loadDashSplit(); } function actionWelcome() { var hashed = location.hash; $(“#referredHash”).val(hashed); closeAllModals(); goToWelcomePage(); } function openInviteConfirmation(pageHash) { $.url = ‘/GetTreelineControl.aspx?controlName=/uc/contacts/InviteResponse.ascx’ + pageHash; $(“#interiorPageContent”).load($.url); } function openSignUpRequestProcessing(pageHash) { var url = ‘/GetTreelineControl.aspx?controlName=/uc/contacts/SignUpRequestResponse.ascx’ + pageHash; openDialog({ url: url, isModal: true, title: getRes(“sign_up_request_processing”), onClose: function () { pageChange(“#dashboard”); } }); } function goToWelcomePage() { $(“#menuDiv”).hide(); $(“#pageHeader”).hide(); $(“#pageURL”).val(“”); window.scrollTo(0, 0); $(‘#pageContent’).css(‘min-width’, ‘auto’); $(“#interiorPageContent”).html(‘Loading…’); ePlus.ui.loadInteriorPageContent(‘/Welcome’, function () { ePlus.modules.welcome.initialize({ isSignUp: location.hash.indexOf(‘#SignUp’) > -1 }); ePlus.modules.login.initialize({ isForgotPassword: location.hash.indexOf(‘#ForgotPassword’) > -1 }); }); if (location.hash !== “”) { var pageHashParameters = location.hash.split(“&”); var pageHashPrimary = pageHashParameters[0].split(“=”); if (pageHashPrimary[0] === “#t”) { var pageHashSecondary = pageHashParameters[1].split(“=”); var pageHashTertiary = pageHashParameters[2].split(“=”); openSetPassword(pageHashSecondary[1], pageHashPrimary[1], pageHashTertiary[1]); } } } function goToAnalyticsDashboard(dashType, subDash, initialize) { $(“#pageURL”).val(“”); $(“#menuDiv”).show(); $(“#pageHeader”).show(); window.scrollTo(0, 0); var url = ‘/uc/listviews/controls/ListView_Progress_Analytics.ascx’; $(‘#pageBlockDiv’).show(); $(‘#mainBlockDiv’).show(); window.scrollTo(0, 0); $(“#pageContent”).append(“Loading AnalyticsPrepping”); $(“#progressAnimation”).html(templateCache.loadingAnimation({ svgLoaderClass: ” })); if (url != “”) { $.url = “/GetTreelineControl.aspx?controlName=” + url; $(“#inProcessDetail”).load($.url, function () { $.url = “/GetTreelineControl.aspx?controlName=/uc/analytics/Analytics_Home.ascx&dashType=” + dashType + “&subDash=” + subDash; if (initialize) { $.url += “&init=true”; } $(“#interiorPageContent”).load($.url); }); } } function refreshMenuDashboard(resultType, dashboardType, itemID) { var uri = “/GetTreelineControl.aspx?controlName=/uc/menus/Menu_Dashboard.ascx”; if (resultType !== undefined) { uri += “&resultType=” + resultType; } if (dashboardType !== undefined) { uri += “&dashboardType=” + dashboardType; } if (itemID !== undefined) { uri += “&itemID=” + itemID; } $(“#menuInterior”).load(uri, function () { $(“.headerLink”).css(“font-weight”, “”); $(“.header_” + dashboardType).css(“font-weight”, “700”); createPublisherSelectMenu(); }); } function loadInProcessDiv(whatsLoading, url) { $(‘#pageBlockDiv’).show(); $(‘#mainBlockDiv’).show(); window.scrollTo(0, 0); $(“#pageContent”).append(“Loading ” + whatsLoading + “Prepping”); $(“#progressAnimation”).html(templateCache.loadingAnimation({ svgLoaderClass: ” })); if (url != “”) { $.url = “/GetTreelineControl.aspx?controlName=” + url; $(“#inProcessDetail”).load($.url, function () { if (whatsLoading == ‘Dashboard’) { window.loadDashSplit(); } else { if (whatsLoading == ‘KPI’) { $.url = “/GetTreelineControl.aspx?controlName=/uc/analytics/KPI_Home.ascx”; $(“#interiorPageContent”).load($.url); } } }); } } function goToBetaSignUp() { $(“#pageURL”).val(“”); window.scrollTo(0, 0); $(“#interiorPageContent”).html(‘Loading…’); $.url = “/GetTreelineControl.aspx?controlName=/uc/welcome/BetaSignUp.ascx”; $(“#interiorPageContent”).load($.url); $(“#menuDiv”).hide(); $(“#pageHeader”).hide(); } function addMargin() { window.scrollTo(0, window.pageYOffset – 70); } window.addEventListener(‘hashchange’, addMargin); function loadNewPage(url, sourcePop) { $(“#interiorPageContent”).html(‘Loading…’); window.scrollTo(0, 0); //$(“#menuDiv”).hide() if (sourcePop != ”) { $(“#popover_” + sourcePop).hide(); } $(“#pageURL”).val(url); $.url = “/GetTreelineControl.aspx?controlName=” + url; $(“#interiorPageContent”).load($.url); } // create the back to top button $(‘body’).prepend(”); function setInputDefaultText(inputControl) { $(‘#’ + inputControl).val($(‘#’ + inputControl).attr(‘defaultValue’)); $(‘#’ + inputControl).focus(function () { if ($(this).val() == $(this).attr(‘defaultValue’)) { $(this).val(”); } }); $(‘#’ + inputControl).blur(function () { if ($(this).val() == ”) { $(this).val($(this).attr(‘defaultValue’)); } }); } function changeWorklistStatus(catalogId) { window.modalAlert(“You must be logged in to use this feature. The good news is that Edelweiss+ registration is free! To log-in, register or learn more, click here”) return false; } function addToWorklistSimple(catalogId) { $(“.worklist_” + catalogId).removeClass(“icon-rating-inactive-icon”); $(“.worklist_” + catalogId).removeClass(“accFont”); $(“.worklist_” + catalogId).addClass(“icon-rating-active-icon”); $(“.worklist_” + catalogId).addClass(“accFont”); $(“.worklist_” + catalogId).addClass(“colorCommunity”); if ($(“#dash_2”).length) { $(“.worklist_” + catalogId).show(); } if ($(“#value_204”).length > 0) { $(“#value_204”).html($(“#value_204”).html() * 1 + 1); $(“#headerCount_2”).html($(“#headerCount_2”).html() * 1 + 1); } //My Edelweiss Value if ($(“#meVal_204”).length > 0) { $(“#meVal_204”).html($(“#meVal_204”).html() * 1 + 1); } $.getJSON(“/getJSONData.aspx?builder=AddToWorkList”, { catalogID: catalogId }, function (data) { if (data.id == 0) { $(“.worklist_” + catalogId).addClass(“icon-rating-inactive-icon”); $(“.worklist_” + catalogId).removeClass(“icon-rating-active-icon”); $(“.worklist_” + catalogId).removeClass(“colorCommunity”); if ($(“#value_204”).length > 0) { $(“#value_204”).html($(“#value_204”).html() * 1 – 1); } } else { $(“.wl_” + catalogId).attr(“title”, “Remove from Work List”); $(“.wlText_” + catalogId).html(“On Worklist”); } }); } function removeFromWorklistSimple(catalogId) { $(“.worklist_” + catalogId).addClass(“icon-rating-inactive-icon”); $(“.worklist_” + catalogId).addClass(“accFont”); $(“.worklist_” + catalogId).removeClass(“icon-rating-active-icon”); $(“.worklist_” + catalogId).removeClass(“accFont”); $(“.worklist_” + catalogId).removeClass(“colorCommunity”); if ($(“#value_204”).length > 0) { $(“#value_204”).html($(“#value_204”).html() * 1 – 1); $(“#headerCount_2”).html($(“#headerCount_2”).html() * 1 – 1); } //My Edelweiss Value if ($(“#meVal_204”).length > 0) { $(“#meVal_204”).html($(“#meVal_204”).html() * 1 – 1); } $.getJSON(“/getJSONData.aspx?builder=RemoveFromWorklist”, { catalogID: catalogId }, function (data) { if (data.code != “OK”) { $(“.worklist_” + catalogId).removeClass(“icon-rating-inactive-icon”); $(“.worklist_” + catalogId).addClass(“icon-rating-active-icon”); $(“.worklist_” + catalogId).addClass(“colorCommunity”); if ($(“#value_204”).length > 0) { $(“#value_204”).html($(“#value_204”).html() * 1 + 1); } } else { $(“.wl_” + catalogId).attr(“title”, “Add to Worklist”); $(“.wlText_” + catalogId).html(“Add to Worklist”); } }); } function addToWorklist(resultType, catalogNumber, catalogId) { displayMessage(“Adding catalog to worklist”, 1000, “300px”); $.getJSON(“/getJSONData.aspx?builder=AddToWorkList”, { catalogID: catalogId }, function (data) { if (data.id > 0) { $(“#” + resultType + “_” + catalogNumber).remove(); $(“#value_204”).html($(“#value_204”).html() * 1 + 1); $(“#value_” + resultType).html($(“#value_” + resultType).html() * 1 – 1); $(“#headerCount_2”).html($(“#headerCount_2”).html() * 1 – 1); $(“#resultCount_2”).val($(“#headerCount_2”).html()); } }); } function RemoveWLItem(key, workListId, pageTag, catalogNumber, thumbType) { displayMessage(“Removing catalog from worklist”, 1000, “300px”); $.getJSON(“/getJSONData.aspx?builder=RemoveItemFromCollection”, { key: key, collectionID: workListId }, function (data) { if (data.code === “ERROR”) { alert(‘An error occurred’); } else { if (thumbType === “204”) { $(“#” + thumbType + “_” + catalogNumber).remove(); $(“#value_204”).html($(“#value_204”).html() * 1 – 1); $(“#headerCount_2”).html($(“#headerCount_2”).html() * 1 – 1); $(“#resultCount_2”).val($(“#headerCount_2”).html()); var sly = new Sly(‘#frame’ + thumbType); sly.reload(); } else { $(“#addWL_” + pageTag + “_” + catalogNumber).show(); $(“#removeWL_” + pageTag + “_” + catalogNumber).hide(); $(“#value_204”).html($(“#value_204”).html() * 1 – 1); } } }); } function saveShelf(sku, newShelf, shelfIcon) { var oldShelf = +$(“#currentShelf_” + sku).val(); if (newShelf != oldShelf) { window.savingModal(‘Saving’); $.getJSON(“/GetJSONData.aspx?builder=SetShelfStatus”, { sku: sku, status: newShelf }, function (data) { if (data.code == “OK”) { var oldShelfIcon = $(“#currentShelfIcon_” + sku).val(); $(“.myShelf_” + sku).removeClass(oldShelfIcon); $(“.myShelf_” + sku).addClass(shelfIcon); if (oldShelf 0) { $(“.simpleShelf_” + sku).show() } } if (newShelf 0) { $(“.simpleShelf_” + sku).hide() } } $(“#currentShelf_” + sku).val(newShelf); $(“#currentShelfIcon_” + sku).val(shelfIcon); closeModal(); //Update Dashboard If Appropriate var refresh = 0 if ($(“#dash_1”).length > 0) { var resultType = $(“#selectedResult_1”).val() if (oldShelf == 15 || newShelf == 15) { if (resultType == ’10’ || resultType == ’81’) { refresh = 1; } } if (oldShelf == 16 || newShelf == 16) { if (resultType == ’11’ || resultType == ’81’) { refresh = 1; } } if (oldShelf == 20 || newShelf == 20) { if (resultType == ’12’ || resultType == ’81’) { refresh = 1; } } if (oldShelf == 30 || newShelf == 30) { if (resultType == ’13’ || resultType == ’81’) { refresh = 1; } } if (oldShelf == 40 || newShelf == 40) { if (resultType == ’14’ || resultType == ’81’) { refresh = 1; } } if (oldShelf == 50 || newShelf == 50) { if (resultType == ’15’ || resultType == ’81’) { refresh = 1; } } if (refresh == 1) { window.GetDashboardValue(translateShelfToResultType(oldShelf), 0); window.GetDashboardValue(translateShelfToResultType(newShelf), 0); refreshThumbnails(resultType, 1, 10); window.ePlus.modules.dashboard.refreshWidgetsWithResultType(translateShelfToResultType(oldShelf)); window.ePlus.modules.dashboard.refreshWidgetsWithResultType(translateShelfToResultType(newShelf)); } } } else alert(data.text); }); } } function translateShelfToResultType(shelf) { switch (shelf) { case 15: return 10; case 16: return 11; case 20: return 12; case 30: return 13; case 40: return 14; case 50: return 15; } } function saveRating(sku, newRating, ratingIcon) { var oldRating = $(“#currentRating_” + sku).val(); $.getJSON(“/GetJSONData.aspx?builder=SetRating”, { sku: sku, rating: newRating }, function (data) { if (data.code === “OK”) { var oldRatingIcon = $(“#currentRatingIcon_” + sku).val(); $(“.myRating_” + sku).removeClass(oldRatingIcon); $(“.myRating_” + sku).addClass(ratingIcon); if (oldRating 0) { $(“.simpleRating_” + sku).show() } } if (newRating 0) { $(“.simpleRating_” + sku).hide() } } $(“#currentRating_” + sku).val(newRating); $(“#currentRatingIcon_” + sku).val(ratingIcon); //Update Dashboard If Appropriate var refresh = 0 if ($(“#dash_1”).length > 0) { var resultType = $(“#selectedResult_1”).val() if (oldRating == 1 || newRating == 1) { if (resultType == ’80’) { refresh = 1; } } if (oldRating == 2 || newRating == 2) { if (resultType == ’80’) { refresh = 1; } } if (oldRating == 3 || newRating == 3) { if (resultType == ’80’) { refresh = 1; } } if (oldRating == 4 || newRating == 4) { if (resultType == ’80’) { refresh = 1; } } if (refresh == 1) { refreshThumbnails(resultType, 1, 10) } } } else { alert(data.text); } }); } function enableSingleCheckbox($checkId) { if ($checkId.hasClass(“box_unchecked”)) { $checkId.addClass(“box_checked”).removeClass(“box_unchecked”); } else { $checkId.addClass(“box_unchecked”).removeClass(“box_checked box_partial_checked”); } } function enableMultipleCheckbox($checkId, commonClass) { $(“.” + commonClass).addClass(“box_unchecked”).removeClass(“box_checked”); $(“#” + $checkId.attr(“id”)).addClass(“box_checked”).removeClass(“box_unchecked”); } function submitReview(sku) { window.savingModal(‘Saving’); var alertmessage = “”; var rating = $(“#currentRating_” + sku).val(); if (rating 0) { $(“.myRating_” + sku).html(-1); $(“.myRating_” + sku).addClass(“hidden”); if (window.items && window.sortrefine) { if (getListViewProperty(“itemType”) != 50) { window.sortrefine[window.items.indexOf(sku)].PersonalReviews = 0; getRefineNumbers(); } } } incrementQHeadCount(20, -1); //If displayed, update the “Downloaded, Not Reviewed” resultType bubble if ($(“#value_17”).length > 0) { window.GetDashboardValue(17, 0, 0); } if ($(“.simpleRating_” + sku).length > 0) { $(“.simpleRating_” + sku).hide() } if ($(“#dash_1”).length > 0) { var resultType = $(“#selectedResult_1”).val(); if (resultType == ‘104’) { refreshThumbnails(resultType, 1, 10) } } if ($(“.reviewBlock_” + sku).length > 0) { $(“.reviewBlock_” + sku).html(“”); $(“.assessment_” + sku).html(“-“); $(“.reviewTime_” + sku).html(‘Today’); } $dialog.trigger(“close”); }); } } function showModalReview_User(userId, sku) { $(“#container-modalWrap”).show(); $(‘html, body’).css(“overflow”, “hidden”); $(“#modal-bbyf”).show(); $(“#modal-bbyf”).css(“width”, “700px”); $(“#modal-bbyf”).html(”); var htmlString = ““; htmlString += “”; htmlString += “” + $(“#userSummary_” + userId).html() + “”; htmlString += “” + $(“#rating_” + userId + “_” + sku).html() + “”; htmlString += “” + $(“#fullReview_” + userId + “_” + sku).val() + “”; htmlString += “”; $(“#modalReview”).html(htmlString); $(“#modal-bbyf”).html($(“#modal-bbyf”).html() + ‘Close’); } function closeHomepageDialog() { $(“#container-modalWrap”).hide(); $(“#modal-bbyf”).hide(); $(“#modal-bbyf”).css(“top”, “200px”); $(“#modal-bbyf”).css(“left”, “0”); $(“#modal-bbyf”).css(“right”, “0”); $(“#modal-bbyf”).css(“bottom”, null); $(“#modal-bbyf”).css(“width”, null); $(‘html, body’).css({ ‘overflow’: ‘auto’, ‘height’: ‘auto’ }); if ($(“#titleFocus”).css(“display”) !== “none”) { $(“#titleFocus”).hide(); } } function displayMessage(messageText, autoTime, width) { $(“#container-modalWrap”).show(); $(‘html, body’).css(“overflow”, “hidden”); $(“#modal-bbyf”).css(“width”, width); $(“#modal-bbyf”).show(); $(“#modal-bbyf”).html(“” + messageText + “”); if (autoTime > 0) { setTimeout(function () { closeHomepageDialog(); }, autoTime); } } function showIllustrations(sku, itemNumber) { $(‘#intImage_1_’ + sku).show(); $(‘#intImage_0_’ + sku).hide(); if ($(‘#TitleView_illustrations’ + itemNumber).attr(“data-status”) == 0) { populateIllustrations(sku, itemNumber, $(“.standardTitleFrame”).width()); } } function populateTitles(resultType, dashboardType, itemCount, divHeight, dashCount) { savingModalOverlay(‘Loading’, “dashboardFrame” + dashboardType); $.url = “/GetTreelineControl.aspx?controlName=/uc/thumbviews/ThumbScrollSlick.ascx&dashCount=” + dashCount + “&divHeight=” + divHeight + “&itemCount=” + itemCount + “&resultType=” + resultType + “&displayType=1&dashboardType=” + dashboardType; $(“#dashTitles_” + dashboardType).load($.url); } function populateReviews(resultType, dashboardType, itemCount, divHeight, dashCount) { savingModalOverlay(‘Loading’, “dashboardFrame” + dashboardType); $.url = “/GetTreelineControl.aspx?controlName=/uc/thumbviews/ThumbScrollSlick.ascx&dashCount=” + dashCount + “&divHeight=” + divHeight + “&itemCount=” + itemCount + “&resultType=” + resultType + “&displayType=50&dashboardType=” + dashboardType; $(“#dashTitles_” + dashboardType).load($.url); } function populateTitles_TagVariant(resultType, dashboardType, tag) { savingModalOverlay(window.loadingText, “dashboardFrame” + dashboardType); $.url = “/GetTreelineControl.aspx?controlName=/uc/thumbviews/ThumbScrollSlick.ascx&divHeight=280&tag=” + tag + “&resultType=” + resultType + “&dashboardType=” + dashboardType + “&displayType=1”; $(“#dashTitles_” + dashboardType).load($.url); } function populateCatalogs(resultType, dashboardType, divHeight, dashCount, callback) { if (divHeight < 280) { divHeight = 280; } savingModalOverlay('Loading', "dashboardFrame" + dashboardType); $.url = "/GetTreelineControl.aspx?controlName=/uc/thumbviews/ThumbScrollSlick.ascx&dashCount=" + dashCount + "&divHeight=" + divHeight + "&resultType=" + resultType + "&displayType=0&dashboardType=" + dashboardType; $("#dashTitles_" + dashboardType).load($.url, callback); } function populateCatalogsList(resultType, dashboardType, divHeight, dashCount) { if (divHeight < 280) { divHeight = 280; } savingModalOverlay('Loading', "dashboardFrame" + dashboardType); $.url = "/GetTreelineControl.aspx?controlName=/uc/thumbviews/ThumbList.ascx&dashCount=" + dashCount + "&divHeight=" + divHeight + "&resultType=" + resultType + "&displayType=0&dashboardType=" + dashboardType; $("#dashTitles_" + dashboardType).load($.url); } function populateCatalogs_TagVariant(resultType, dashboardType, tag) { var creator = "" if ($("#tagCreator").val() != "") { creator = "&creator=" + encodeURI($("#tagCreator").val()) } savingModalOverlay('Loading', "dashboardFrame" + dashboardType); $.url = "/GetTreelineControl.aspx?controlName=/uc/thumbviews/ThumbScrollSlick.ascx&divHeight=280&tag=" + tag + "&resultType=" + resultType + "&displayType=0&dashboardType=" + dashboardType + creator; $("#dashTitles_" + dashboardType).load($.url); } function populatePublishers(resultType, dashboardType, dashCount) { $("#dashTitles_" + dashboardType).html('Loading Publishers...'); $.url = "/GetTreelineControl.aspx?controlName=/uc/thumbviews/ThumbScroll.ascx&divHeight=183&dashCount=" + dashCount + "&thumbHeight=80&resultType=" + resultType + "&displayType=2&dashboardType=" + dashboardType; $("#dashTitles_" + dashboardType).load($.url); } function populatePeople(resultType, dashboardType, dashCount) { savingModalOverlay('Loading', "dashboardFrame" + dashboardType); $.url = "/GetTreelineControl.aspx?controlName=/uc/thumbviews/ThumbScrollSlick.ascx&dashCount=" + dashCount + "&thumbHeight=80&resultType=" + resultType + "&displayType=3&dashboardType=" + dashboardType; $("#dashTitles_" + dashboardType).load($.url); } function populateOrders(resultType, dashboardType, dashCount) { savingModalOverlay('Loading', "dashboardFrame" + dashboardType); $.url = "/GetTreelineControl.aspx?controlName=/uc/thumbviews/ThumbScrollSlick.ascx&dashCount=" + dashCount + "&thumbHeight=80&resultType=" + resultType + "&displayType=4&dashboardType=" + dashboardType $("#dashTitles_" + dashboardType).load($.url); } function populatePubilicityCampaigns(resultType, dashboardType, dashCount) { var thumbHeight = 80 savingModalOverlay('Loading', "dashboardFrame" + dashboardType); $.url = "/GetTreelineControl.aspx?controlName=/uc/thumbviews/ThumbScrollSlick.ascx&dashCount=" + dashCount + "&thumbHeight=" + thumbHeight + "&resultType=" + resultType + "&displayType=12&dashboardType=" + dashboardType $("#dashTitles_" + dashboardType).load($.url); } function populateFixedJackets(catalogId, thumbHeight) { $("#jackets_" + catalogId).html('Loading Titles...') $.url = "/GetTreelineControl.aspx?controlName=/uc/thumbviews/ThumbFixed.ascx&thumbHeight=" + thumbHeight + "&catalogID=" + catalogId + "&resultType=31&displayType=1" $("#jackets_" + catalogId).load($.url); } function populateFixedJackets_People(resultType, userId) { $.url = "/GetTreelineControl.aspx?controlName=/uc/thumbviews/ThumbFixed.ascx&thumbHeight=110&userID=" + userId + "&resultType=" + resultType + "&displayType=1" $("#jackets_" + resultType + "_" + userId).load($.url); } function populateFixedCovers(resultType, orgId) { $("#covers_" + resultType + "_" + orgId).html('Loading Catalogs...') $.url = "/GetTreelineControl.aspx?controlName=/uc/thumbviews/ThumbFixed.ascx&thumbHeight=110&orgID=" + orgId + "&resultType=" + resultType + "&displayType=0" $("#covers_" + resultType + "_" + orgId).load($.url); } function renderCompDetail(sku, source, view, mailingID) { window.savingModalOverlay('Loading', "compHolder_" + source + "_" + sku) $.url = "/GetTreelineControl.aspx?controlName=/uc/product/CompsBasicDetailGrid.ascx&sku=" + sku + "&source=" + source + "&mailingID=" + mailingID; $(".compHolder_" + source + "_" + sku).load($.url, function () { window.closeSavingModalOverlay("compHolder_" + source + "_" + sku) $(".compHolder_" + source + "_" + sku).show(); $(".noCompHolder_" + source + "_" + sku).hide(); if ($("#compsFor_" + sku).length > 0 && window.hasPosData) { var options = { skuList: $(“#compsFor_” + sku).val(), rowClass: sku, selectedOrgId: getListViewProperty(“selectedOrgID”), gridType: ‘single’ }; loadCompAnalytics(options); } }); } function reloadDashboard(dashboardType) { $(“#dashboard_” + dashboardType).html(‘Loading…’); $.url = “/GetTreelineControl.aspx?controlName=/uc/dashboard/Dashboard.ascx&dashboardType=” + dashboardType; $(“#dashboard_” + dashboardType).load($.url); } function populateWelcomeTitles(resultType, itemCount) { $(“#welcomeScroll”).html(‘Loading Titles…’); $.url = “/GetTreelineControl.aspx?controlName=/uc/thumbviews/ThumbScroll.ascx&thumbHeight=130&itemCount=” + itemCount + “&resultType=” + resultType + “&displayType=title”; $(“#welcomeScroll”).load($.url); } function showNoteDetail(sku) { $(“#noteWidget” + sku).html(‘Loading…’); $.url = “/GetTreelineControl.aspx?controlName=/uc/product/ProductNotes.ascx&sku=” + sku; $(“#noteWidget” + sku).load($.url); animateUp(“noteWidget” + sku); } function showDisplayNote(sku) { $.url = “/GetTreelineControl.aspx?controlName=/uc/product/two_Notes.ascx&reload=1&sku=” + sku; $(“#displayNote” + sku).load($.url); } function animateDown(controlDiv) { var div = $(“#” + controlDiv); var height = div.height(); div.css({ overflow: “hidden”, marginTop: 0, height: height }).animate({ marginTop: height, height: 0 }, 1000, function () { $(this).css({ display: “none”, overflow: “”, height: “”, marginTop: “” }); }); } function animateUp(controlDiv) { var div = $(“#” + controlDiv + “:not(:visible)”); var height = div.css({ display: “block” }).height(); div.css({ overflow: “hidden”, marginTop: height, height: 0 }).animate({ marginTop: 0, height: height }, 1000, function () { $(this).css({ display: “”, overflow: “”, height: “”, marginTop: “” }); }); } function openListViewTags(sku, displayOnly, focusOn) { if ($(“#curTags_” + sku).html() != “” && $(“#curTags_” + sku).html() != ‘Loading’ && $(“.myTags_” + sku).html() * 1 == 0 && $(“.orgTags_” + sku).length == 0) { $(“#curTags_” + sku).html(“”) } else { if ($(“#curTags_” + sku).html() == “”) { $(“#curTags_” + sku).html(“Loading”); } $.url = “/GetTreelineControl.aspx?controlName=/uc/controls/tagTitleInline.ascx&sku=” + sku + “&displayOnly=” + displayOnly + “&focusOn=” + focusOn; $(“#curTags_” + sku).load($.url); } } function openListViewNote(sku) { $.getJSON(“/getJSONData.aspx?builder=GetOrgNote”, { sku: sku }, function (data) { if (data.data == “SUCCESS”) { if (data.text == “” || data.text == undefined) { data.text = “”; data.obj = “”; } $(“#curNote_” + sku).html(“Note” + data.text + “

” + data.obj + “” + data.text + “”); } }, “json”); } function openListViewAccountNotes(skus) { if (!_.isArray(skus)) { return; } var postParams = JSON.stringify(skus); var selectedOrgId = getListViewProperty(“selectedOrgID”); if (!ePlus.modules.org.isValidOrgId(selectedOrgId)) { for (var i = 0, max = skus.length; i 0) { selectedAccountName += ” Notes”; } var defaultLabel = “Account Notes”; for (var i = 0, max = skus.length; i < max; i++) { if (data[skus[i]]) { var notesText = buildAccountNotes(data[skus[i]]); $("#curAccountNote_" + skus[i]) .html("" + (selectedAccountName || defaultLabel) + "" + notesText + ''); } else { $("#curAccountNote_" + skus[i]).html(""); } } } }); } } function openListViewAccountTags(skus) { if (!_.isArray(skus)) { return; } var postParams = JSON.stringify(skus); var selectedOrgId = getListViewProperty("selectedOrgID"); if (!ePlus.modules.org.isValidOrgId(selectedOrgId)) { for (var i = 0, max = skus.length; i 0) { selectedAccountName += " Tags"; } var defaultLabel = "Account Tags"; for (var i = 0, max = skus.length; i < max; i++) { if (data[skus[i]]) { var tagsHtml = buildAccountTags(data[skus[i]]); $("#account-shared-tags-" + skus[i]) .html("" + (selectedAccountName || defaultLabel) + "" + tagsHtml + ''); } else { $("#account-shared-tags-" + skus[i]).html(""); } } } }); } } function buildAccountTags(tags) { var tagInnerHtml = _.reduce(tags, function (html, tag) { var nameString = ''; if (tag.firstName && tag.lastName && _.size(tag.firstName.trim()) > 0 && _.size(tag.lastName.trim()) > 0) { nameString = ‘ (‘ + tag.firstName.substring(0, 1) + ‘. ‘ + tag.lastName + ‘)’; } return html + ‘

  • ‘ + tag.value + nameString + ”; }, “”); return ‘
      ‘ + tagInnerHtml + ”; } function buildAccountNotes(notes) { var notesText = “”; for (var i = 0; i < notes.length; i++) { notesText += notes[i].text + " "; } return notesText; } function goToAnalyticsHome(dashboardType, subDash) { pageChange("analytics=" + dashboardType + "&subDash=" + subDash); } function isAnalyticsRowsUsed() { return parseInt(getListViewProperty("dashboardType")) === parseInt(getEnumValue("dashType", "LA_HOME")) || parseInt(getListViewProperty("listType")) === parseInt(getEnumValue("listType", "ANALYSISOFTITLESET")); } function getSelectedItems() { var rows = isAnalyticsRowsUsed() ? EdelweissAnalytics.rows : window.rows; var arr = []; for (var i = 0; i < rows.length; i++) { if (rows[i].selected == 1) { arr.push(rows[i].item); } } return arr; } function getSelectedItemsIntoString() { var rows = isAnalyticsRowsUsed() ? EdelweissAnalytics.rows : window.rows; var selectedItems = getSelectedItems(); return _.join(selectedItems, ','); } function getItemsWithClass(classToCheck, classToCheckFor, attributeToRetrieve) { var arr = new Array(); $("." + classToCheck + "." + classToCheckFor).each(function (i, obj) { arr[arr.length] = $(this).attr(attributeToRetrieve); }); return arr; } function getItemsWithClassIntoString(classToCheck, classToCheckFor, attributeToRetrieve) { var result = ""; $("." + classToCheck + "." + classToCheckFor).each(function (i, obj) { if (result != "") { result += ","; } result += $(this).attr(attributeToRetrieve); }); return result; } function getItemsWithClassAndAttributeIntoString(classToCheck, classToCheckFor, attributeToCheckFor, attributeValue, attributeToRetrieve) { var result = ""; var $element = $("." + classToCheck + "." + classToCheckFor) $element.each(function (i, obj) { if ($(this).attr(attributeToCheckFor) == attributeValue) { if (result != "") { result += ","; } result += $(this).attr(attributeToRetrieve); } }); return result; } //The function to open and close the 'Content' link in the moreTitleInfo.ascx page function ToggleContentReference(id, sku, mode) { if (mode == 1 && (!$('#' + id).is(":hidden"))) { //Show all when the overall content page is shown already $(".expandContent").show() $('#' + id + '-plus-arrow').hide(); } else { $('#' + id + '-plus-arrow').show(); $('#' + id).toggle(); if (!$('#' + id).is(":hidden")) { $('#' + id + '-arrow').removeClass("icon-drop-down-icon"); $('#' + id + '-arrow').addClass("icon-drop-up-icon-01"); $.url = "/GetTreelineControl.aspx?controlName=/uc/product/two_Enhanced.ascx&sku=" + sku + "&idPrefix=" + id + "&mode=" + mode; $('#' + id).load($.url); if (mode == 1) { $('#' + id + '-plus-arrow').hide(); } } else { $('#' + id + '-arrow').addClass("icon-drop-down-icon"); $('#' + id + '-arrow').removeClass("icon-drop-up-icon-01"); $(".expandContent").hide() } } } function HideContentReference() { $('.content_plus_arrow').show(); $('.content_arrow').addClass("icon-drop-down-icon"); $('.content_arrow').removeClass("icon-drop-up-icon-01"); $('.titleContentDiv').hide(); } function ShowContentReference(id, sku, mode) { if (mode == 1 && (!$('#' + id).is(":hidden"))) { //Show all when the overall content page is shown already $(".expandContent").show() $('#' + id + '-plus-arrow').hide(); } else { if ($('#' + id).is(":hidden")) { $('#' + id).toggle(); $('#' + id + '-plus-arrow').show(); $('#' + id + '-arrow').removeClass("icon-drop-down-icon"); $('#' + id + '-arrow').addClass("icon-drop-up-icon-01"); $.url = "/GetTreelineControl.aspx?controlName=/uc/product/two_Enhanced.ascx&sku=" + sku + "&idPrefix=" + id + "&mode=" + mode; $('#' + id).load($.url); if (mode == 1) { $('#' + id + '-plus-arrow').hide(); } } } } //The function to open and close the 'Content' link in the moreTitleInfo.ascx page function ToggleRelatedProduct(id, sku) { $('#' + id + '-plus-arrow').show(); $('#' + id).toggle(); if (!$('#' + id).is(":hidden")) { $('#' + id + '-arrow').removeClass("icon-drop-down-icon"); $('#' + id + '-arrow').addClass("icon-drop-up-icon-01"); reloadRelatedProduct(id, sku); } else { $('#' + id + '-arrow').addClass("icon-drop-down-icon"); $('#' + id + '-arrow').removeClass("icon-drop-up-icon-01"); //$(".expandContent").hide() } } function reloadRelatedProduct(id, sku) { $('#related-titles-locations-count').webuiPopover('destroy'); $.url = "/GetTreelineControl.aspx?controlName=/uc/product/RelatedBasic.ascx"; var params = $.param({ sku: sku, idPrefix: id, mailingId: getListViewProperty("selectedMailingID"), selectedStoreIds: getRelatedProductsSelectedStores(sku) }) $('#' + id).load($.url, params); } function getRelatedProductsSelectedStores(sku) { var storeIdsInputValue = $('#selected-store-id-' + sku).val(); return storeIdsInputValue && storeIdsInputValue.length ? storeIdsInputValue : ''; } //The function to open and close the 'Content' link in the moreTitleInfo.ascx page function ToggleComps(id, sku, isPublisherCompsVisible) { $('#' + id + '-plus-arrow').show(); $('#' + id).toggle(); if (!$('#' + id).is(":hidden")) { $('#' + id + '-arrow').removeClass("icon-drop-down-icon"); $('#' + id + '-arrow').addClass("icon-drop-up-icon-01"); var mailingId = getListViewProperty("selectedMailingID"); if (!mailingId) { mailingId = getHashValue("mailingID"); } $.url = "/GetTreelineControl.aspx?controlName=/uc/product/CompsBasic.ascx&sku=" + sku + "&idPrefix=" + id + "&mailingID=" + mailingId + (isPublisherCompsVisible !== undefined ? "&isPublisherCompsVisible=" + isPublisherCompsVisible : ""); $('#' + id).load($.url); } else { $('#' + id + '-arrow').addClass("icon-drop-down-icon"); $('#' + id + '-arrow').removeClass("icon-drop-up-icon-01"); //$(".expandContent").hide() } } //The function to open and close the 'Content' link in the moreTitleInfo.ascx page function ToggleReferences(id, sku, orgId, catalogId, pubOrgId, cms) { $('#' + id + '-plus-arrow').show(); $('#' + id).toggle(); if (!$('#' + id).is(":hidden")) { $('#' + id + '-arrow').removeClass("icon-drop-down-icon"); $('#' + id + '-arrow').addClass("icon-drop-up-icon-01"); $.url = "/GetTreelineControl.aspx?controlName=/uc/product/lookup/ProductLookup.ascx" + "&sku=" + sku + "&idPrefix=" + id + "&orgID=" + orgId + "&catalogID=" + catalogId + "&pubOrgId=" + pubOrgId + "&cms=" + cms; $('#' + id).load($.url); } else { $('#' + id + '-arrow').addClass("icon-drop-down-icon"); $('#' + id + '-arrow').removeClass("icon-drop-up-icon-01"); //$(".expandContent").hide() } } function showIntImage(sku) { $("#intImage_0_" + sku).hide(); $("#intImage_1_" + sku).show(); } function hideIntImage(sku) { $("#intImage_0_" + sku).show(); $("#intImage_1_" + sku).hide(); } function ShowComps(id, sku, isPublisherCompsVisible) { var mailingId = getListViewProperty("selectedMailingID"); if ($('#' + id).is(":hidden")) { $('#' + id + '-plus-arrow').show(); $('#' + id).toggle(); $('#' + id + '-arrow').removeClass("icon-drop-down-icon"); $('#' + id + '-arrow').addClass("icon-drop-up-icon-01"); $.url = "/GetTreelineControl.aspx?controlName=/uc/product/CompsBasic.ascx&sku=" + sku + "&idPrefix=" + id + "&mailingID=" + mailingId + (isPublisherCompsVisible !== undefined ? "&isPublisherCompsVisible=" + isPublisherCompsVisible : ""); $('#' + id).load($.url); } } function HideComps() { $('.comps_arrow').addClass("icon-drop-down-icon"); $('.comps_arrow').removeClass("icon-drop-up-icon-01"); $('.titleCompsDiv').hide(); } function AddCompTitleToMarkup(sku, compSKU, _, options) { showMultiModalLoadingAnimation('comp-search-results-' + sku, getRes('saving')); var mailingId = getListViewProperty("selectedMailingID"); $.getJSON("/getJSONData.aspx?m=CompProduct&builder=AddCompTitles&sku=" + sku + "&CompSkus=" + compSKU + "&dORGID=&mailingID=" + mailingId + "&catalogID=0", function (data) { if (data.code == "SUCCESS") { if ($(".cbd").length == 0) { renderCompDetail(sku, 0, 0, mailingId); } else { renderCompDetail(sku, 0, 1, mailingId); } $(".comp-add-" + compSKU + "-to-" + sku).hide(); closeCompSearch(sku); if (options && typeof options.onSuccess === "function") { options.onSuccess(); } } else { alert(data.text); } }, "json"); } function AddPublisherCompTitle(sku, compSKU, sourceOrgId, options) { showMultiModalLoadingAnimation('comp-search-results-' + sku, getRes('saving')); var values = { sku: sku, compSKU: compSKU, sourceOrgId: sourceOrgId }; $.getJSON("/getJSONData.aspx?m=CompProduct&builder=AddPublisherComps", values, function (data) { if (data.code == "SUCCESS") { changeTitleAdminView('7'); var compsAddedCount = _.isNil(data.data) ? 0 : parseInt(data.data, 10); var currentCompsCount = 0; if ($("#modal_7-count").length) { currentCompsCount = parseInt($("#modal_7-count").html(), 10); } $("#modal_7-count").html(currentCompsCount + compsAddedCount); closeCompSearch(sku); ePlus.modules.listViewTitleRow.setTitleBlockerStatus(true); if (options && typeof options.onSuccess === "function") { options.onSuccess(); } } else { alert(data.text); } }, "json"); } function openAnalyticsListViewHeaders(header, dashType) { if ($('#popover_' + header).css("display") == "none") { $('.pop_menu').slideUp(); var detailListPosition = $('#detailList_' + dashType).position(); var listTop = detailListPosition.top; $('#popover_analyticsListView_block').css( { top: listTop }); $('#popover_analyticsListView_block').show(); if (header == 'actions') { $('#popover_' + header + '_arrow').css("left", $("#ic_" + header).position().left * 1 + 8 + "px"); } else { $('#popover_' + header + '_arrow').css("left", "17px"); $('#popover_' + header).css("left", $("#ic_" + header).position().left * 1 - 8 + "px"); } $('#popover_' + header).slideDown(); } } function closeListViewHeaders(header) { $('#popover_' + header).slideUp(); $('#popover_listView_block').hide(); } //The functions to open and close the catalog hovers function openCatalogHover(selectedControl, hoverContent) { createCatalogHover(selectedControl, hoverContent); var o1 = $("." + selectedControl).position(); var left = o1.left - 1; var top = o1.top; var controlWidth = $("." + selectedControl).width() * 1; $("#pop_arrow").css("left", left * 1 + controlWidth / 2 - 7 + "px"); $("#pop_arrow").css("left", "90%"); $("#popFrame").css("top", top + 20 + "px"); //$("#pop_content").html(decodeURI(hoverContent)); $("#popFrame").slideDown(); } function createCatalogHover(selectedControl, hoverContent) { try { $("#popFrame").remove(); var dHTML = ''; dHTML += ''; dHTML += '' + decodeURI(hoverContent) + ''; $("." + selectedControl).after(dHTML); } catch (err) { alert('here') } } function closeCatalogHover() { $("#popFrame").remove(); } //The functions to open and close the menus on the Action Strip function initializeHover(elem, text) { $("." + elem).mouseout(function () { window.closeHover(); }).mouseover(function () { window.openHover(elem, text); }); } function deleteCollection(collectionID) { var message = "Are you sure you want to delete this collection?"; modalConfirm({ message: message, width: "400px", height: "200px", buttons: { "Yes": function () { $.post("/getJSONData.aspx?m=Collection&builder=DeleteCollection", { collectionID: collectionID }, function (data) { if (data.code == "OK") { goToCollections(); } }, "json"); closeModal(); }, "No": function () { closeModal(); } } }); } function addNewCollection() { window.savingModal('Saving'); var collectionValues = { collectionName: $("#collectionName").val(), collectionOverview: $("#collectionOverview").val() }; $.post("/getJSONData.aspx?builder=CreateNewUserCollection", collectionValues, function (data3) { if (data3.code == "SUCCESS") { var catalogId = data3.data; pageChange('catalogID=' + catalogId); closeModal(); } }, "json"); } function matchTitlesToCollections(sku, priorities, compTitles, markupNotes, tags, mailingId, doEditCollection) { //Get Catalogs In and Catalogs Out var collections_In = getItemsWithClassIntoString('addCollectionOption', 'box_checked', 'catalogID'); var markups; var catalogs = { collections_In: collections_In }; var doCopyPriorities = $(priorities).hasClass('box_checked'); var doCopyCompTitles = $(compTitles).hasClass('box_checked'); var doCopyMarkupNotes = $(markupNotes).hasClass('box_checked'); var doCopyTags = $(tags).hasClass('box_checked'); if (doCopyPriorities || doCopyCompTitles || doCopyMarkupNotes || doCopyTags) { $.getJSON("/getJSONData.aspx?builder=GetMarkupsFromCatalogID", catalogs, function (data) { if (data.code == "SUCCESS") { markups = data.data; openSelectMarkupsModal(markups, sku, mailingId, "Please select which markups to override in each collection."); } else if (data.code == "NOSELECTION") { AddToOrRemoveFromCollection(sku, priorities, compTitles, markupNotes, tags, mailingId, false, false, doEditCollection); } }); } else { AddToOrRemoveFromCollection(sku, priorities, compTitles, markupNotes, tags, mailingId, false, false, doEditCollection); } } function AddToOrRemoveFromCollection(sku, priorities, compTitles, markupNotes, tags, mailingId, doCloseModalFirst, doRemove, doEditCollection) { if (doCloseModalFirst) { closeModal(); } window.savingModal('Saving'); var collections_In = getItemsWithClassIntoString('addCollectionOption', 'box_checked', 'catalogID'); var collections_Out = []; if (doRemove) { collections_Out = collections_In; collections_In = []; } var targetMailingIds = getItemsWithClassIntoString('markupSelectionOption', 'box_checked', 'data-mailingId'); var doCopyPriorities = $(priorities).hasClass('box_checked'); var doCopyCompTitles = $(compTitles).hasClass('box_checked'); var doCopyMarkupNotes = $(markupNotes).hasClass('box_checked'); var doCopyTags = $(tags).hasClass('box_checked'); var mode = "singleTitle"; if (sku == "All") { skuList = getSelectedItems(); skuList = skuList.join(","); mode = "multipleTitle"; } else { skuList = sku; } if ($("#createNewCollection").hasClass("box_checked") && $("#collectionName").val() != "" && !doRemove) { var collectionValues = { collectionName: $("#collectionName").val(), collectionOverview: $("#collectionOverview").val() }; $.post("/getJSONData.aspx?builder=CreateNewUserCollection", collectionValues, function (data3) { if (data3.code == "SUCCESS") { collections_In += "," + data3.data; var values = { CatalogsIn: collections_In, CatalogsOut: collections_Out, targetMailingIds: targetMailingIds, skus: skuList, doCopyPriorities: doCopyPriorities, doCopyCompTitles: doCopyCompTitles, doCopyMarkupNotes: doCopyMarkupNotes, doCopyTags: doCopyTags, sourceMailingID: mailingId }; $.post("/getJSONData.aspx?builder=AddToCollection", values, function (data2) { if (data2.code == "SUCCESS") { var collectionInfo = getCollectionInfoIfAddedToSingleCollection(collections_In); closeSavingModal(); closeModal(); if (mode == "singleTitle") { $(".myCollections_" + sku).html(data2.data); if (data2.data > 0) { if (!$(“.myCollections_” + sku).hasClass(“hidden”)) { $(“.myCollections_” + sku).show(); } if ($(“.simpleCollections_” + sku).length > 0) { $(“.simpleCollections_” + sku).show() } } else { $(“.myCollections_” + sku).hide(); if ($(“.simpleCollections_” + sku).length > 0) { $(“.simpleCollections_” + sku).hide() } } if (doEditCollection) { goToEditCollection(collectionInfo); } } else { //Loop Through and Replace values in myCollections for each visible SKU $.post(“/getJSONData.aspx?builder=RefreshCollectionTotals”, { skus: skuList }, function (data) { if (data && data.length) { for (var i = 0; i 0) { $(“.myCollections_” + data[i].text).html(data[i].data); if (data[i].data > 0) { if (!$(“.myCollections_” + data[i].text).hasClass(“hidden”)) { $(“.myCollections_” + data[i].text).show(); } if ($(“.simpleCollections_” + data[i].text).length > 0) { $(“.simpleCollections_” + data[i].text).show() } } else { $(“.myCollections_” + data[i].text).hide(); if ($(“.simpleCollections_” + data[i].text).length > 0) { $(“.simpleCollections_” + data[i].text).hide() } } } } } if (doEditCollection) { goToEditCollection(collectionInfo); } }, “json”); } } else { closeSavingModal(); alert(data2.text); } }, “json”); } }, “json”); } else { var values = { CatalogsIn: collections_In, CatalogsOut: collections_Out, targetMailingIds: targetMailingIds, skus: skuList, doCopyPriorities: doCopyPriorities, doCopyCompTitles: doCopyCompTitles, doCopyMarkupNotes: doCopyMarkupNotes, doCopyTags: doCopyTags, sourceMailingID: mailingId }; $.post(“/getJSONData.aspx?builder=AddToCollection”, values, function (data) { if (data.code == “SUCCESS”) { var collectionInfo = getCollectionInfoIfAddedToSingleCollection(collections_In); closeModal(); closeSavingModal(); if (mode == “singleTitle”) { $(“.myCollections_” + sku).html(data.data); if (data.data > 0) { if (!$(“.myCollections_” + sku).hasClass(“hidden”)) { $(“.myCollections_” + sku).show(); } if ($(“.simpleCollections_” + sku).length > 0) { $(“.simpleCollections_” + sku).show() } } else { $(“.myCollections_” + sku).hide(); if ($(“.simpleCollections_” + sku).length > 0) { $(“.simpleCollections_” + sku).hide() } } if (doEditCollection) { goToEditCollection(collectionInfo); } } else { //Loop Through and Replace values in myCollections for each visible SKU $.post(“/getJSONData.aspx?builder=RefreshCollectionTotals”, { skus: skuList }, function (data) { if (data && data.length) { for (var i = 0; i 0) { $(“.myCollections_” + data[i].text).html(data[i].data); if (data[i].data > 0) { if (!$(“.myCollections_” + data[i].text).hasClass(“hidden”)) { $(“.myCollections_” + data[i].text).show(); } if ($(“.simpleCollections_” + data[i].text).length > 0) { $(“.simpleCollections_” + data[i].text).show() } } else { $(“.myCollections_” + data[i].text).hide(); if ($(“.simpleCollections_” + data[i].text).length > 0) { $(“.simpleCollections_” + data[i].text).hide() } } } } } if (doEditCollection) { goToEditCollection(collectionInfo); } }, “json”); } } else { closeSavingModal(); alert(data.text); } }, “json”); } } // Presentation Mode Functions function changePresentationImage(pageNumber, sku) { $(“.presNav” + sku).removeClass(“extraBold”); var activeFrame = $(“.activeFrame” + sku).html(); var inactiveFrame = $(“.inactiveFrame” + sku).html(); var imagePath = $(“.presentationImagePath” + sku).html(); $(“.pictureFrame” + sku + inactiveFrame).css(“background-image”, “url(‘” + imagePath + $(‘.presentationPage’ + sku + pageNumber).html() + “?height=450′)”); $(“.pr_selectedPage” + sku).html(pageNumber); $(‘.pictureFrame’ + sku + activeFrame).fadeOut(1, function () { $(‘.pictureFrame’ + sku + inactiveFrame).fadeIn(100); $(“.activeFrame” + sku).html(inactiveFrame); $(“.inactiveFrame” + sku).html(activeFrame); }); $(“.presNav” + sku + pageNumber).addClass(“extraBold”); } function focusNext(sku) { var focusSection = $(“.pr_selectedPage” + sku).html() * 1; if (focusSection == $(“#pr_totalPages” + sku).val() – 1) { changePresentationImage(0, sku); } else { changePresentationImage(focusSection + 1, sku); } } function focusPrevious(sku) { var focusSection = $(“.pr_selectedPage” + sku).html() * 1; if (focusSection == 0) { changePresentationImage($(“#pr_totalPages” + sku).val() – 1, sku); } else { changePresentationImage(focusSection – 1, sku); } } function loadTitleFrame_Basic(sku) { $.url = “/GetTreelineControl.aspx?controlName=/uc/listviews/TitleFrame_Basic.ascx&sku=” + sku; $(“#stripPresentation” + sku).addClass(“hidden”); $(“#titleFrame_Presentation” + sku).remove(); $(“#titleFrame_Basic” + sku).removeClass(“hidden”); } function loadTitleFrame_Presentation(sku) { if ($(“#stripPresentation” + sku).hasClass(“hidden”)) { $.url = “/GetTreelineControl.aspx?controlName=/uc/listviews/TitleFrame_Presentation.ascx&sku=” + sku + “&source=lv”; $(“#stripPresentation” + sku).removeClass(“hidden”); $(“#titleFrame_Basic” + sku).addClass(“hidden”); $(“.legacyContainer”, $(“#as_” + sku)).addClass(“hidden”); $(“#presentationHolder” + sku).load($.url); } else { $(“.legacyContainer”, $(“#as_” + sku)).removeClass(“hidden”); loadTitleFrame_Basic(sku); } } function saveMarkupPotential(mailingId, sku, potential) { $(“#markupPotential” + sku).css(“background-color”, “#FC601F”); $.getJSON(“/GetJSONData.aspx?builder=SetMarkupPotential”, { sku: sku, potential: potential, mailingID: mailingId }, function (data) { if (data.code == “OK”) { $(“#markupPotential” + sku).css(“background-color”, “#FFF”); $(“#poError_” + sku).hide(); $(“#poSave_” + sku).hide(); $(“#markupPotential” + sku).val(data.data); } else { if (data.code == “numeric”) { $(“#poError_” + sku).show(); } else { alert(data.text); } } }); } function toggleCheckBox(element) { if ($(element).hasClass(“box_checked”)) { $(element).removeClass(“box_checked”).addClass(“box_unchecked”); } else { $(element).addClass(“box_checked”).removeClass(“box_unchecked”); } } function changeOrderStatus(elem, orderId, resultType, orderStatus) { var status = !_.isNil(elem) ? elem.attr(“data-Status”) : orderStatus; if (_.isNil(status)) { return; } $.getJSON(“/GetJSONData.aspx?builder=ChangeOrderStatus”, { orderList: orderId, newStatus: status }, function () { $(“#as_” + orderId).parent().slideUp(); removeListViewItem(orderId); updateRefineFilterCounts(); adjustTotalResultsCount(-1); var activeOrdersResultType = “50”, completedOrdersResultType = “51”; if (status === “3”) { adjustResultTypeCount(activeOrdersResultType, -1); adjustResultTypeCount(completedOrdersResultType, 1); } else { adjustResultTypeCount(activeOrdersResultType, 1); adjustResultTypeCount(completedOrdersResultType, -1); } }); } function setOrderLineItemMode(exportType) { var BOOKSCAPE = ’12’; var SQUAREONE = ‘1’; var IS_PUBLISHER = false; if ((exportType == BOOKSCAPE || exportType == SQUAREONE) && !IS_PUBLISHER) { o.setStoreMultiLineMode(true); } else { o.setStoreMultiLineMode(false); } } function SaveOrganizationPreference(type, name, value, callbackFunction) { $.getJSON(“/getJSONData.aspx?builder=SaveOrganizationPreference”, { type: type, name: name, value: value }, function (data) { if (typeof callbackFunction === “function”) { callbackFunction(data); } }); } function SearchEditItem(orderId, mode) { var url = ‘/GetTreelineControl.aspx?controlName=/uc/search/searchSku.ascx&orderID=’ + orderId + ‘&mode=’ + (mode || 0); openModal(url, ‘500px’, ‘150px’); } function saveOrderRecordChanges(options, callback) { if (!options || !options.changes || options.changes.length === 0) return; var listViewOptions = { onDone: function (result) { var addItemToOrderEvent = new CustomEvent(“itemAdded”, { detail: { didSucceed: result.didSucceed } }); window.dispatchEvent(addItemToOrderEvent) } } window.savingModal(‘Saving’); var reportName = ”; if ($(‘#exportType’).attr(“val”)) { var exportInfo = $(‘#exportType’).attr(“val”).split(“~”); reportName = exportInfo[1]; } var values = { cultureName: options.cultureName, orderId: options.order.id, orderOrgId: options.order.orgId, changes: JSON.stringify(options.changes), isNew: options.isNew, dupeCheck: options.dupeCheck, sortBy: options.sortBy, sortDirection: options.sortDirection, reportName: reportName }; $.post(“/GetJSONData.aspx?builder=SaveOrderEdits”, values, function (data) { closeSavingModal(); if (data.code) { if (data.code == “NEW”) { $(‘#addSKUIcon’).webuiPopover(‘destroy’); if (typeof loadExportPreview === “function”) { loadExportPreview($(“#curStartRow”).val()); } else if (isInListView({ itemType: getEnumValue(‘itemType’, ‘TITLE’) })) { reloadCurrentPage(); } if (listViewOptions && typeof listViewOptions.onDone === ‘function’) { listViewOptions.onDone({didSucceed: true}) } closeModal(); } else if (data.code == “ERROR”) { if ($(‘#message’).length > 0) { $(‘#message’) .html(” + data.text + ”); } else { alert(data.text); } if (listViewOptions && typeof listViewOptions.onDone === ‘function’) { listViewOptions.onDone({ didSucceed: false }) } } else if (data.code == “duplicate”) { if (confirm(data.text)) { saveOrderExportRecord(false, options.mode); } closeModal(); } else { $.orderDirty = true; } } else { if (typeof loadExportPreview === “function”) { loadExportPreview($(“#curStartRow”).val()); } if (typeof window.UpdateListRow == “function”) { window.UpdateListRow(data); } if (typeof window.refreshMessages == ‘function’) { window.refreshMessages(); } if (getListViewProperty(“itemType”) === 1) { closeModal(); } if (typeof callback === ‘function’) { callback(); } if (listViewOptions && typeof listViewOptions.onDone === ‘function’) { listViewOptions.onDone({ didSucceed: true }) } } }, “json”); } function ProductEditRecord(id, orderID, referenceNumber, exportType, sku, index, field, value, isDynamic, isSKULevelOverride) { this.id = id; this.orderID = orderID; this.referenceNumber = referenceNumber; this.exportType = exportType; this.sku = sku; this.index = index; this.field = field; this.value = value; this.mappingCode = null; this.mappingFromCode = null; this.mappingIsPermanent = null; this.isDynamic = isDynamic; this.errorCode = null; this.isSKULevelOverride = isSKULevelOverride; } function removeComp(sku, compsku, targetOrgId, mailingId, catalogId) { $(“#markUpComp_” + sku).html(“Saving. Please wait…”); $.post(“/getJSONData.aspx?m=CompProduct&builder=RemoveCompTitles”, { sku: sku, compsku: compsku, orgId: targetOrgId, mailingId: mailingId, catalogId: catalogId }, function (data) { if (data.code == “SUCCESS”) { var cbd = $(“.cbd”).length if (cbd == 0) { renderCompDetail(sku, 0, 0, mailingId); } else { renderCompDetail(sku, 0, 1, mailingId); } if (sku === compsku && $(“#compToSelf”)) { $(“#compToSelf” + sku).show(); } $(“.comp-add-” + compsku + “-to-” + sku).show(); } else { alert(data.text); } }, “json”); } function ActivateLineItemDept(sku, storeId, lineItem) { $(“.inputCatLoc”).each(function () { var inputId = $(this).attr(“id”); LoadCategories(inputId, storeId, sku, lineItem); var key = inputId.replace(“inputCatLoc_”, “”), currentCategory = $(“.catLoc_” + key).html(), hasCategory = currentCategory != ” && currentCategory != ‘Add Category’, categoryValue = hasCategory ? currentCategory : “”; $(this).val(categoryValue); }); $(“.inputCatLoc”).first().select().focus(); } function LoadCategories(autoid, storeId, sku, lineItem) { if (storeId != undefined && $(“input#Department_Categories”).data(“storeID”) == storeId) { LoadDepartments(autoid, sku, storeId, lineItem); } else { $(“input#Department_Categories”).val(“”); var passedStore = storeId; if (storeId == “All”) { passedStore = “”; } $.get(“/getJSONData.aspx?builder=GetStoreCategories”, { storeID: passedStore }, function (data) { if (data != “EMPTY”) { if ($(‘#Department_Categories’).length == 0) $(‘body’).append(“”); $(“input#Department_Categories”).data(“storeID”, storeId); $(“input#Department_Categories”).val(data); LoadDepartments(autoid, sku, storeId, lineItem); } }); } $(‘#Cat_Dept_Auto_Loading’).hide(); } function LoadDepartments(autoid, sku, storeId, lineItem) { var data = $(“input#Department_Categories”).val(); if (data) { var list = data.split(“~”); $(“#” + autoid).autocomplete(list, { matchContains: true, max: 200 }).result(function (event) { event.stopPropagation(); saveCategories(sku, storeId, lineItem, true); return false; }); } } function AddUserCompTitle(sku, compSku) { $.getJSON(“/getJSONData.aspx?builder=AddUserCompTitles&sku=” + sku + “&CompSkus=” + compSku, function (data) { if (data.code == “SUCCESS”) { $(“#cw_” + compSku).remove(); $(“#compTitles_” + sku).html($(“#compTitles_” + sku).html() * 1 + 1); var id = “comps_1_” + sku; $.url = “/GetTreelineControl.aspx?controlName=/uc/product/CompsBasic.ascx&sku=” + sku + “&idPrefix=” + id; $(‘#’ + id).load($.url); closeChildModal(); closeModal(); } else { alert(data.text); } }, “json”); } function RestoreUserCompTitle(sku, compSku, mailingID) { $.getJSON(“/getJSONData.aspx?builder=RestoreUserCompTitles&sku=” + sku + “&CompSkus=” + compSku, function (data) { if (data.code == “SUCCESS”) { $(“#cw_” + compSku).remove(); $(“#compTitles_” + sku).html($(“#compTitles_” + sku).html() * 1 + 1); var id = “comps_1_” + sku; $.url = “/GetTreelineControl.aspx?controlName=/uc/product/CompsBasic.ascx&sku=” + sku + “&idPrefix=” + id + “&mailingID=” + mailingID; $(‘#’ + id).load($.url); closeModal(); } else { alert(data.text); } }, “json”); } function RemoveUserCompTitle(sku, compSku) { $.post(“/getJSONData.aspx?builder=RemoveUserCompTitles”, { sku: sku, compSku: compSku }, function (data) { if (data.code == “SUCCESS”) { $(“#cw_” + compSku).remove(); $(“#compTitles_” + sku).html($(“#compTitles_” + sku).html() * 1 – 1); $(“#compsHidden_” + sku).html($(“#compsHidden_” + sku).html() * 1 + 1) if ($(“#compsHidden_” + sku).html() * 1 > 0) { $(“#compsHidDiv_” + sku).show(); } else { $(“#compsHidDiv_” + sku).hide(); } var cbd = $(“.cbd”).length var mailingId = getListViewProperty(“selectedMailingID”); $(“.comp-add-” + compSku + “-to-” + sku).show(); if (cbd == 0) { renderCompDetail(sku, 0, 0, mailingId); } else { renderCompDetail(sku, 0, 1, mailingId); } } else { alert(data.text); } }, “json”); } function ClearDashboardValue(resultType, itemId) { $(itemId > 0 ? “#value_” + resultType + “_” + itemId : “#value_” + resultType).html(“…”); } function ClearDashboardValues(resultTypes) { if (!resultTypes) return; for (var i = 0, max = resultTypes.length; i 0) { $(“#value_” + resultType + “_” + itemId).load(url); } else { $(“#value_” + resultType).load(url); } } function GetResultValue(resultType, itemId) { var url = “/GetTreelineControl.aspx?controlName=/uc/dashboard/controls/Dashboard_BallValue.ascx&resultType=” + resultType + “&itemID=” + itemId; var elemSuffix = resultType; if (itemId > 0) { elemSuffix = resultType + “_” + itemId; }; $(“#value_” + elemSuffix).load(url, function () { if (+$(“#value_” + elemSuffix).html() !== 0) { $(“#valueHolder_” + elemSuffix).show(); } }); } function updateDashboardHeader(dashboardType) { var values = { dashboardType: dashboardType } $.getJSON(“/GetJSONData.aspx?builder=GetResultTypeCounts”, values, function (data) { if (data.code === “SUCCESS”) { var counts = JSON.parse(data.data); $.each(counts, function (key, value) { updateHeader(dashboardType, value.visible); updateHiddenHeader(dashboardType, value.hidden); }); } }); } function GetDashboardValues(resultTypes, dashboardType) { if (!resultTypes) return; for (var i = 0, max = resultTypes.length; i 0) { $(“#value_” + resultType).html(“…”); } adjustTimeBoxes(days) $.getJSON(“/getJSONData.aspx?builder=SaveUserPreference”, { type: ‘dashboard’, name: ‘days_’ + resultType, value: days }, function () { var timeframeString = $(“#timeString_” + days).text(); $(“#timeChange_” + resultType) .attr(“data-days”, days) .attr(‘title’, timeframeString); $(“#timeString_” + resultType).html(timeframeString); $(“#timeframeString_” + selectedResultType).val(timeframeString); $(“#timeframeDays_” + selectedResultType).val(days); if ($(“#meVal_” + resultType).length > 0) { GetMyEdelweissValue(resultType); } window.GetDashboardValuePlusRefresh(resultType, dashboardType); if ($(“#source_typeOfList_” + dashboardType).val() === ‘0’) { ///If time frame is switched from Dashboard Options if ($(“#timeString_” + resultType).length && resultType == selectedResultType) { $(“#resultName_” + dashboardType).html($(“#displayText_” + resultType).val() + ” ” + $(“#timeString_” + resultType).html()); if (dashboardType == 3) { refreshDashboardCloud(resultType, window.loadingText); } else { if ($(“#value_” + resultType).html() != 0) { refreshThumbnails(resultType, dashboardType, $.trim($(“#value_” + resultType).html())); } else { $(“#dashContent_” + dashboardType).html(“”); } } } } else if (resultType == selectedResultType) { window.changeHomePageOption(getListViewProperty(“resultType”), getListViewProperty(“dashboardType”), null, true); } if ($(“#cSelected_shared”).length > 0) { $(“#cSelected_shared”).html(“-“); $.url = “/GetTreelineControl.aspx?controlName=/uc/dashboard/controls/Dashboard_BallValue.ascx&resultType=77&targetOrgID=” + $(“#cSelected_orgID”).val() + “&targetUserID=” + $(“#cSelected_userID”).val(); $(“#cSelected_shared”).load(); } closeChildModal(); }); } function GetDashboardValuePlusRefresh(resultType, dashboardType) { var url = “/GetTreelineControl.aspx?controlName=/uc/dashboard/controls/Dashboard_BallValue.ascx&resultType=” + resultType; if (dashboardType != null) url += “&dashboardType=” + dashboardType; $(“#value_” + resultType).load(url, function () { var val = $.trim($(“#value_” + resultType).html()); var dashType; if ($(“#myCheck_” + resultType).length > 0) { dashType = $(“#myCheck_” + resultType).attr(“data-dashType”); } else { dashType = $(“#value_” + resultType).attr(“data-dashType”); } }); } function GetMyEdelweissValue(resultType) { $.url = “/GetTreelineControl.aspx?controlName=/uc/dashboard/controls/Dashboard_BallValue.ascx&resultType=” + resultType; $(“#meVal_” + resultType).load($.url, function () { var val = $.trim($(“#meVal_” + resultType).html()); var dashType; dashType = $(“#value_” + resultType).attr(“data-dashType”); if (dashType != 3) { if (val == 0) { $(“#me_” + resultType).addClass(“hidden”); $(“#me_” + resultType).removeClass(“shown”); $(“#dashContent_” + dashType).html(“”); } else { $(“#me_” + resultType).addClass(“shown”); $(“#me_” + resultType).removeClass(“hidden”); $(“#dash_” + dashType).show(); $(“#noVal_” + dashType).hide(); } } if ($(“#value_” + resultType).length == 0) { var dashType; if ($(“#myCheck_” + resultType).length > 0) { dashType = $(“#myCheck_” + resultType).attr(“data-dashType”); } else { dashType = $(“#value_” + resultType).attr(“data-dashType”); } if ($(“#selectedResult_” + dashType).length > 0) { if ($(“#selectedResult_” + dashType).val() == resultType) { populateResultOptionsRefresh(resultType, dashType, val); } } } }); } function saveResultType(resultType, dashType, value, displayName, itemCount) { $(“.dashSection” + dashType).removeClass(“selectedResultType”); $(“#dash_” + resultType).addClass(“selectedResultType”); if (value == null) value = resultType; if (displayName != null || $(“#value_” + resultType).html() != “0”) { if (resultType == “204”) { $(“#resequenceWorklistIcon”).show(); } else { $(“#resequenceWorklistIcon”).hide(); } $.getJSON(“/getJSONData.aspx?builder=SaveUserPreference”, { type: ‘dashboard’, name: ‘resultTypes_’ + dashType, value: value }, function () { $(“#dash_” + dashType).show(); $(“#noVal_” + dashType).hide(); if (dashType == window.dashType.tag) { if ($(“#tempList1”).length > 0) { $(“#tempList1”).html(“”); $(“#tempList2”).html(“”); } populateResultOptionsTags(resultType); } else { populateResultOptionsFull(resultType, dashType, displayName, itemCount); } resizePublisherScroller(); }); } } function populateResultOptionsFull(resultType, dashType, displayName, itemCount) { if (itemCount == null) itemCount = $(“#value_” + resultType).html(); itemCount = $.trim(itemCount); if (displayName == null) { displayName = $(“#displayText_” + resultType).val() } if ($(“#timeframeString_” + resultType).length) { var timeframeString = $(“#timeframeString_” + resultType).val(); displayName += ” ” + timeframeString; } $(“#resultName_” + dashType).html(displayName); if ($(“#headerCount_” + dashType).length > 0) { $(“#headerCount_” + dashType).html(itemCount); $(“#resultCount_” + dashType).val(itemCount); } if ($(“#selectedResult_” + dashType).length > 0) { $(“#selectedResult_” + dashType).val(resultType); } else { closeModal(); } if ($(“#source_typeOfList_” + dashType).val() === ‘0’) { var val = $.trim($(“#value_” + resultType).html()) if (val != 0) { refreshThumbnails(resultType, dashType, val); } else { $(“#dashTitles_” + dashType).html(“”); } } else { window.pageChange(‘#dashList=’ + dashType + ‘&rT=’ + resultType + ‘&start=0’); window.closePop(); } } function loadDash(dashType) { changePage(‘#dashList=’ + dashType); } function populateResultOptionsRefresh(resultType, dashType, count) { if ($(“#headerCount_” + dashType).length > 0) { $(“#headerCount_” + dashType).html(count); $(“#resultCount_” + dashType).val($(“#headerCount_” + dashType).html()); } if ($(“#source_typeOfList_” + dashType).val() === ‘0’) { var val = $.trim($(“#value_” + resultType).html()) refreshThumbnails(resultType, dashType, val); } else { window.changePage(‘#dashList=’ + dashType + ‘&rT=’ + resultType + ‘&start=0’); window.closePop(); } } function callRestService(uri, _onSuccess, _onFailure) { $.ajax({ type: ‘GET’, url: uri, async: true, success: function (data) { if (typeof _onSuccess == ‘function’) _onSuccess(data); }, error: function (xhr, ajaxOptions, thrownError) { if (typeof _onFailure != ‘function’) console.warn(“There was an error loading ” + uri) + ” error:” + thrownError; else _onFailure(); }, datatype: ‘json’ }); } function refreshThumbnails(resultType, dashType, val) { //$(“#dash_” + dashType).css(“height”, $(“#naturalHeight_” + dashType).val() + “px”); if (dashType == ‘2’) { if (window.catDisplay == 0) { window.populateCatalogs(resultType, dashType, 0, $(“#resultCount_” + dashType).val()); } else { window.populateCatalogsList(resultType, dashType, 0, $(“#resultCount_” + dashType).val()); } } if (dashType == ‘9’ || dashType == ‘0’ || dashType == ‘1’) { window.populateTitles(resultType, dashType, val, $(“#naturalHeight_” + dashType).val(), $(“#resultCount_” + dashType).val()); } if (dashType == ‘6’) { window.populateOrders(resultType, dashType, $(“#resultCount_” + dashType).val()); } if (dashType == ‘5’) { window.populatePeople(resultType, dashType, $(“#resultCount_” + dashType).val()); } if (dashType == ’12’) { window.populatePubilicityCampaigns(resultType, dashType, $(“#resultCount_” + dashType).val()); } if (dashType == ’50’) { window.populateReviews(resultType, dashType, $(“#resultCount_” + dashType).val()); } } function refreshMyPublishers() { savingModalOverlay(‘Refreshing…’, “dash_myPublisher”); var url = “/GetTreelineControl.aspx?controlName=/uc/dashboard/myPublisherScroller.ascx”; $(“#dash_myPublisher”).load(url) } (function ($) { $.event.special.destroyed = { remove: function (o) { if (o.handler) { o.handler(); } } } })(jQuery); function RenameContactGroup(groupID) { var newName = $(“#cSelected_groupName”).val() if (newName != ”) { $.getJSON(“/getJSONData.aspx?m=Contacts&builder=RenameGroups”, { groupID: groupID, name: newName }, function (data) { var success = false; for (var i = 0; i 0) { $.getJSON(“/api/filters/” + filterId, {}, function (filterObj) { if (filterObj.hasOwnProperty(“definition”)) { var filterDefinitionObj = JSON.parse(filterObj.definition); if (filterDefinitionObj.hasOwnProperty(“pubDate”)) { for (var laneKey in lanes) { var pubDateFilter = getSolrDateRange(filterDefinitionObj[“pubDate”]); if (typeof EdelweissAnalytics.addPubDateFilter === “function”) { EdelweissAnalytics.addPubDateFilter(lanes[laneKey].dashType, pubDateFilter); } } } for (var property in filterDefinitionObj) { if (filterDefinitionObj.hasOwnProperty(property) && property.indexOf(“refine_”) === 0) { for (var laneKey in lanes) { EdelweissAnalytics.addToAttributeFilters(lanes[laneKey].dashType, property, filterDefinitionObj[property]); } } } } EdelweissAnalytics.Weeding.updateSelectedWeedingSettingsWithNewSavedFilter(filterId, filterObj.name); }); } for (var laneKey in lanes) { var dashType = lanes[laneKey].dashType; if (EdelweissAnalytics.isVisibleLane[dashType]) { if ($(“.analyticsDetailsGrid”).attr(“data-lanekey”) === EdelweissAnalytics.LaneKeys.TrendsAnalysis) { oTable.fnDestroy(); $(“#titleGrid”).empty(); } if (laneKey === EdelweissAnalytics.LaneKeys.TrendsAnalysis) { EdelweissAnalytics.isTrendsAnalysisChartUpdated = true; } if (laneKey === EdelweissAnalytics.LaneKeys.WeedingAnalysis) { EdelweissAnalytics.selectedWeedingType = EdelweissAnalytics.weedingType.all; } EdelweissAnalytics.startLaneUpdateProcess(laneKey); } } // always save the filterId, whether it’s greater than 0 (filter selected) or not (no filter selected). $.getJSON(“/getJSONData.aspx?builder=SaveUserPreference”, { type: ‘dashboard’, name: ‘selectedSavedFilterId.200’, value: filterId }); }); } function drawStandardPie(dashType, jsonData, colors, eventName, onEventHandler, laneKey, callback, chartIndex) { laneKey = typeof laneKey !== “undefined” ? laneKey : null; callback = typeof callback !== “undefined” ? callback : null; chartIndex = typeof chartIndex !== “undefined” ? chartIndex : 0; var stockAnalysisClass = EdelweissAnalytics.filterOptions[dashType].stockAnalysisClass; if (stockAnalysisClass == -1) { stockAnalysisClass = 0 } var defaultColors = [‘#92D050’, ‘#CCFF66’, ‘#FFEA00’, ‘#FC601F’, ‘#598A18’]; var chosenColors = defaultColors; if (typeof colors !== “undefined” && _.isArray(colors) && !_.isEmpty(colors)) { chosenColors = colors; } var options = { backgroundColor: ‘transparent’, chartArea: { left: ‘5%’, top: ‘5%’, width: ‘90%’, height: ‘90%’ }, colors: chosenColors, height: 160, width: 160, is3D: false, fontSize: 10, tooltip: { ignoreBounds: true }, legend: { position: ‘none’ }, sliceVisibilityThreshold: 1 / 100000, slices: { 0: { offset: 0.0 }, 1: { offset: 0.0 }, 2: { offset: 0.0 }, 3: { offset: 0.0 }, 4: { offset: 0.0 }, 5: { offset: 0.0 } } }; var data = new google.visualization.DataTable(jsonData); var isOnAnalyticsHome = $(“#dash_” + dashType).length; if (isOnAnalyticsHome && !EdelweissAnalytics.filterOptions[dashType].includeTitlesFromAllStockAnalysisClasses) { for (i = 0; i < data.getNumberOfRows(); i++) { if (stockAnalysisClass == i) { options.slices[i] = { offset: 0.1 }; } } } if (laneKey !== null) { var chart_div = EdelweissAnalytics.getChartDivByLaneKeyAndChartIndex(laneKey, chartIndex); } else { var chart_div = getStandardPieDiv(dashType); } var chart = new google.visualization.PieChart(chart_div); if (typeof onEventHandler === "function") { google.visualization.events.addListener(chart, eventName, function () { onEventHandler(chart); }); } if (callback != null) { google.visualization.events.addListener(chart, 'ready', function () { return callback(null, "Pie Chart Initialization Complete"); }); google.visualization.events.addListener(chart, 'error', function () { return callback(new Error("Error initializing pie chart")); }); } chart.draw(data, options); } function getStandardPieDiv(dashType) { return document.getElementById('chartFrame' + dashType); } function initializeMarkupSelect() { $('.markupOptionCheck').on("click", function () { window.enableMultipleCheckbox($(this), "markupOptionCheck"); selectMarkup($(this).attr("markupId")); toggleMarkupImport($(this)) }); } function toggleMarkupImport($markup) { if ($markup.data("readonly-markup")) { $("#importMarkup").hide(); } else { $("#importMarkup").show(); } } function loadSingleTitle(sku, toWhere, dashType) { if ($('#detailList_' + dashType).length == 0) { $(".Analytics").hide(); $("#dash_" + dashType).show(); $("#analytics_content").show(); $("#analytics_content").html("Loading Details"); $.url = "/GetTreelineControl.aspx?controlName=/uc/analytics/dashDetails/AnalyticsDetail_" + dashType + ".ascx"; $("#analytics_content").load($.url, function () { $.url = "/GetTreelineControl.aspx?controlName=/uc/listviews/ListView.ascx&start=0&itemID=" + sku + "&resultType=101&dashboardType=0&itemType=1&dataType=communityActivity&sku=" + sku; $("#" + toWhere).load($.url, function () { $("#mp_ShowList").show(); }); }); } else { $.url = "/GetTreelineControl.aspx?controlName=/uc/listviews/ListView.ascx&start=0&itemID=" + sku + "&resultType=101&dashboardType=0&itemType=1&dataType=communityActivity&sku=" + sku; $("#" + toWhere).load($.url); $("#mp_ShowList").show(); } } function showSimpleAction(suffix) { $("#hoverSimple_" + suffix).hide() $(".addSimple").hide(); $("#addSimple_" + suffix).show(); } function hideSimpleAction(suffix) { $("#addSimple_" + suffix).hide() } function addSimpleAction(suffix) { if ($("#addSimple_" + suffix).css("display") == "none") { $(".addSimple").hide(); showSimpleAction(suffix); } else { hideSimpleAction(suffix); } } function clickDashAction(sku, resultType, iClass) { if ($("." + iClass + "_" + resultType + "_" + sku).css("display") == "none") { $(".addSimple").hide(); $("." + iClass + "_" + resultType + "_" + sku).show(); } else { $("." + iClass + "_" + resultType + "_" + sku).hide() } } function hoverDashAction(sku, resultType, iClass) { $("." + iClass + "_" + resultType + "_" + sku).show(); } function closeDashAction(sku, resultType, iClass) { $("." + iClass + "_" + resultType + "_" + sku).hide(); } function hoverSimpleAction(sku, resultType) { $(".hoverSimple_" + resultType + "_" + sku).show(); } function closeSimpleAction(sku, resultType) { $(".hoverSimple_" + resultType + "_" + sku).hide(); } function showDrcHover(sku, resultType) { $(".drcHover_" + resultType + "_" + sku).show(); } function hideDrcHover(sku, resultType) { $(".drcHover_" + resultType + "_" + sku).hide(); } function showTitleHideHover(sku, resultType) { $(".hideTitleHover_" + resultType + "_" + sku).show(); } function hideTitleHideHover(sku, resultType) { $(".hideTitleHover_" + resultType + "_" + sku).hide(); } function hideCatalog(catalogId, dashboardType, resultType) { var url = "api/me/catalogs/exclusions/" + catalogId; $.ajax({ type: "PUT", url: url }).done(function () { if (dashboardType != null) { $('#thumb_' + catalogId).parent().addClass("hidden_" + dashboardType).hide(); } else { $('#lv_' + catalogId).addClass("hidden_" + dashboardType).hide(); } }).error(function () { alert("An unexpected error occurred while performing this action. Please try again or contact Above The Treeline Support."); }); } function setShowHiddenTitles(contextId, dashboardType, value) { $.getJSON("/getJSONData.aspx?builder=SaveUserPreference", { type: 'userContext', name: 'showHidden_' + contextId, value: value }, function () { if (_.startsWith(window.location.hash, "#dashList")) { loadDash(dashboardType); } else { reloadCurrentPage(); } }); } function updateHeader(dashboardType, visibleItems) { $('#headerCount_' + dashboardType).html(visibleItems); } function updateHiddenHeader(dashboardType, hiddenItems) { if (hiddenItems > 0) { $(‘#hiddenCount_’ + dashboardType).text(hiddenItems); $(‘.hiddenWrapper_’ + dashboardType).show(); } else { $(‘.hiddenWrapper_’ + dashboardType).hide(); } } function updateHideToggle(itemId, isHidden) { var $itemToUpdate = $(‘.hide_’ + itemId); var label = “”; if (isHidden) { label = $itemToUpdate.data(‘type’) === “catalog” ? “Show Collection” : “Unhide”; } else { label = $itemToUpdate.data(‘type’) === “catalog” ? “Hide Collection” : “Hide”; } $itemToUpdate.attr(“title”, label).toggleClass(“icon-remove-icon icon-add-icon”); } function unhideItem(itemId, dashboardType, resultType, onDone) { var url = getHideItemApiUri(resultType, itemId); if (!url) return; $.ajax({ type: “DELETE”, url: url }).done(function () { $(‘.simpleTags_’ + itemId + ‘.bgdColorHidden’).hide(); if (dashboardType != null) { $(‘#thumb_’ + dashboardType + ‘_’ + itemId).parent().removeClass(“excluded”).show(); $(‘#catThumb_’ + dashboardType + ‘_’ + itemId).parent().removeClass(“excluded”).show(); updateDashboardHeader(dashboardType); closeSavingModalOverlay(“visual_” + dashboardType + “_” + itemId); closeSavingModalOverlay(“cat_” + resultType + “_” + itemId); } else { $(‘#as_’ + itemId).parent().removeClass(“excluded”).show(); updateHideToggle(itemId, false); } if ($.isFunction(onDone)) { onDone(); } }).error(function () { alert(“An unexpected error occurred while performing this action. Please try again or contact Above The Treeline Support.”); }); } function hideItem(itemId, dashboardType, resultType, doShowHidden, onDone) { var url = getHideItemApiUri(resultType, itemId); if (!url) return; if (dashboardType === null) { var $hideTarget = $(‘#as_’ + itemId).parent(); if (doShowHidden == null || !doShowHidden) { $hideTarget.slideUp(); } $hideTarget.addClass(“excluded”); updateHideToggle(itemId, true); } $.ajax({ type: “PUT”, url: url }).done(function () { $(‘.simpleTags_’ + itemId + ‘.bgdColorHidden’).show(); if (dashboardType != null) { ePlus.modules.listView.hideListViewElement(resultType, itemId, dashboardType); var toggle = !!dashboardExclusionFilters[dashboardType]; toggleDashboardExclusionFilter(dashboardType, toggle); updateDashboardHeader(dashboardType); closeSavingModalOverlay(“visual_” + dashboardType + “_” + itemId); closeSavingModalOverlay(“cat_” + resultType + “_” + itemId); } if (_.isFunction(onDone)) { onDone(); } }).error(function () { alert(“An unexpected error occurred while performing this action. Please try again or contact Above The Treeline Support.”); }); } function toggleHidden(itemId, dashboardType, resultType, doShowHidden) { if ($(“#thumb_” + dashboardType + “_” + itemId).length > 0) { savingModalOverlay(”, “visual_” + dashboardType + “_” + itemId); } else if ($(“#catThumb_” + dashboardType + “_” + itemId).length > 0) { savingModalOverlay(”, “cat_” + resultType + “_” + itemId); } function reinitializeAutoComplete() { if (_.isFunction(window.initializeAutoComplete)) { window.initializeAutoComplete(); } } var isCurrentlyHidden = false; if ($(‘#as_’ + itemId).parent().hasClass(“excluded”) || $(‘#thumb_’ + dashboardType + ‘_’ + itemId).parent().hasClass(“excluded”) || $(‘#catThumb_’ + dashboardType + ‘_’ + itemId).parent().hasClass(“excluded”)) { unhideItem(itemId, dashboardType, resultType, reinitializeAutoComplete); isCurrentlyHidden = true; } else { hideItem(itemId, dashboardType, resultType, doShowHidden, reinitializeAutoComplete); } if (!doShowHidden && !_.isNil($(“#hiddenItems”).html())) { updateHiddenCount(itemId, isCurrentlyHidden); removeListViewItem(itemId); updateRefineFilterCounts(); } hideSimpleAction(resultType + ‘_’ + itemId); } function updateHiddenCount(itemId, isCurrentlyHidden) { var currentCount = $(“#hiddenItems”).html().match(/[0-9]+/gi); var totalCount = _.parseInt($(“#totalResults”).html(), 10); var currentCountInt = 0; if (_.isArray(currentCount) && !_.isNaN(_.parseInt(currentCount[0], 10))) { currentCountInt = _.parseInt(currentCount[0], 10); } if (isCurrentlyHidden) { currentCountInt–; totalCount++; } else { currentCountInt++; totalCount–; } if (currentCountInt > 0) { $(“#hiddenItems”).html(templateCache.hiddenCount({ hiddenCount: currentCountInt })).show(); } else { $(“#hiddenItems”).html(“”).hide(); } if (!_.isNaN(totalCount)) { $(“#totalResults”).html(totalCount); } } function getHideItemApiUri(resultType, itemId) { switch (parseInt(resultType)) { case 22: case 20: case 21: case 260: return “/api/me/galleys/availability/exclusions/” + itemId; case 106: case 108: case 107: return “/api/me/buzz/exclusions/” + itemId; case 2001: case 2002: case 2003: case 2006: return “/api/me/reviews/exclusions/” + itemId; case 73: case -1: case 208: case 207: case 215: return “api/me/catalogs/exclusions/” + itemId; case 4015: return “api/affiliations/” + itemId + “/exclusions”; default: return “”; } } function getEPlusContextResultTypes(contextId) { if (!window.ePlusContextResultTypesMap || !window.ePlusContextResultTypesMap[contextId]) return null; return window.ePlusContextResultTypesMap[contextId]; } function toggleDashboardExclusionFilter(dashboardType, doShowHidden) { dashboardExclusionFilters = dashboardExclusionFilters || {}; dashboardExclusionFilters[dashboardType] = doShowHidden; if (doShowHidden) { $(“.dashboardFrame” + dashboardType).slick(“slickUnfilter”); } else { $(“.dashboardFrame” + dashboardType).slick(“slickFilter”, “:not(.excluded)”); } } function changeHomePageOption(resultType, dashType, controlID, isRefresh) { // Exit if this option is already selected. if (resultType === getListViewProperty(“resultType”) && !isRefresh) { return; } window.stopLoading = getListViewProperty(“resultType”); clearFilterUi(); window.scrollTo(0, 0); $(“#rightNavContent”).fadeOut(); $(“.refineOptions”).html(“”).slideUp(); setListViewProperty(“resultType”, resultType); setListViewProperty(“dashboardType”, dashType); $(“.homeOptionRow”, $(“#leftNavOptions”)).removeClass(“accFont”).removeClass(“selectedOptionRow”); cacheResultOptionCounts(); if (controlID != null) { window.stopLoading = null; var prefValue = $(“#” + controlID).attr(“data-value”); var prefType = $(“#” + controlID).attr(“data-type”); window.listView[prefType] = encodeURIComponent(prefValue); $(“#displayText_” + resultType).val(prefValue); } if (resultType == 100) { $(“#selectedOptionTimeFrame”).fadeOut(); adjustDisplayAndSavePreference($(“#” + controlID).attr(“data-value”)); } else { if (resultType == 74 || resultType == 75 || dashType == 3) { $(“.listTagRow”, $(“#leftNavOptions”)).removeClass(“selectedOptionRow”); $(“#” + controlID).addClass(“selectedOptionRow”); } else { $(“#homeOptionRow_” + getListViewProperty(“resultType”)).addClass(“selectedOptionRow”); } $.getJSON(“/getJSONData.aspx?builder=SaveUserPreference”, { type: ‘dashboard’, name: ‘resultTypes_’ + dashType, value: resultType }, function () { location.hash = updateUriHashParameter(location.hash, “page”, 1); if (controlID != null) { $(“#selectedOptionTimeFrame”).fadeOut(); reloadList(getListViewProperty(“resultType”), null, true); } else { reloadCurrentPage(); } } ); } } function adjustDisplayAndSavePreference(viewID) { $(“.optRadio”).removeClass(“radio_checked”).addClass(“radio_unchecked”); $(“.listOptionSection”).removeClass(“accFont”).removeClass(“selectedDashOption”); $(“#optRadio_” + viewID).addClass(“radio_checked”).removeClass(“radio_unchecked”); $(“#selectedOptionText”).html(‘Saved Filter: ‘ + $(“#filtName_” + viewID).html()); $.getJSON(“/getJSONData.aspx?builder=SaveUserPreference”, { type: ‘dashboard’, name: ‘selectedSavedFilterId.’ + window.dashType.filters, value: viewID }, function (data) { if (data.code == “OK”) { reloadList(); } }); } function cacheResultOptionCounts() { window.cachedResultOptionCounts = {}; $(“.listOptionSection”).each(function (i, obj) { var resultType = $(this).attr(“data-resultType”); var count = $(“#value_” + resultType).html(); window.cachedResultOptionCounts[resultType] = count; }); } function getDashValues_DRC() { window.GetDashboardValue(20, 0, 0); } function getDashValues_Buzz() { window.GetDashboardValue(106, 0); window.GetDashboardValue(107, 0); window.GetDashboardValue(108, 0); window.GetDashboardValue(110, 0); } function convertSortTypesToNames(sortClass) { switch (sortClass) { case 0: return “originalOrder”; case 4: return “Isbn”; case 8: return “Author”; case 9: return “PubDateSort”; case 16: return “Publisher”; case 6: return “Format”; case 18: return “categorySort”; case 5: return “Title”; case 80: return “PeerReviews”; case 82: return “CurrentBuzz”; case 81: return “PeerShelves”; case 1: return “originalOrder”; case 14: return “originalOrder”; case 100: return “AppointmentDateSort”; case 105: return “UpdatedDateSort”; case 90: return “LastViewedSort”; case 26: return “Name”; case 220: return “RecentActivity”; case 20: return “DateAddedSort”; case 93: return “PrcDateCreatedSort”; case 94: return “DrcDateCreatedSort”; case 7: return “Price”; case 92: return “DueDateSort”; case 251: return “publisherSubmissionDateSort” case 300: return “ProcessedDateSort” case 301: return “MostRecentRequestDateSort” case 302: return “EarlierRequestDateSort” case 15: return “OrderQuantity”; case 208: return “StoresOrderedPercent”; case 211: return “StoresOnHandPercent”; case 213: return “StoresSoldPercent”; case 401: return ‘accountSort’; case 400: return ‘lastFirstNameSort’; case 403: return ‘stateSort’; case 402: return ‘citySort’; case 33: return “SingleTitleSort”; case 111: return “ShippedDate”; case 503: return “prcStatusSort”; case 500: return “distributorNameSort”; case 501: return “distributorStatusSort”; case 504: return “printableStatusSort”; case 35: return “createdBySort”; case 34: return “createdDateSort”; case 36: return “memberCountSort”; case 600: return “Worklist”; } } function initCompSorting(mailingId, catalogId, orgId) { $(“.sortable-comps”).sortable({ forcePlaceholderSize: true, handle: “.icon-move-vertical”, items: “.comp-sort-row”, update: function (event, ui) { var sku = $(this).attr(“data-sku”); var newIndex = ui.item.index(); var compList = new Array(); var items = $(this).children().has(“[class*=’moveVertical’]”); items.each(function () { compList.push($(this).attr(“data-sku”)); }); var values = { sku: sku, compSku: compList.join(“,”), newIndex: newIndex, orgId: orgId, mailingId: mailingId, catalogId: catalogId } $.post(“/getJSONData.aspx?m=CompProduct&builder=ResequenceCompTitles”, values, function (data) { if (data.code != “SUCCESS”) { alert(data.text); } }, “json”); } }); } function makeCompsSortable(sku, mailingId, catalogId, orgId) { $(“#comps” + sku).sortable({ forcePlaceholderSize: true, handle: “.icon-move-vertical”, items: “#sortableRow” + sku, update: function (event, ui) { var newIndex = ui.item.index(); var compList = new Array(); var items = $(this).children().has(“[class*=’moveVertical’]”); items.each(function () { compList.push($(this).attr(“data-sku”)); }); var values = { sku: sku, compSku: compList.join(“,”), newIndex: newIndex, orgId: orgId, mailingId: mailingId, catalogId: catalogId } $.post(“/getJSONData.aspx?m=CompProduct&builder=ResequenceCompTitles”, values, function (data) { if (data.code != “SUCCESS”) { alert(data.text); } }, “json”); } }); } function goToSavedFilters(viewID) { viewID = viewID.replace(‘100_’, ”); savePreference(‘dashboard’, ‘selectedSavedFilterId.’ + window.dashType.filters, viewID, function () { pageChange(‘savedFilters’); closeModal(); }); } function goToTag(tagValue, resultType, viewID, daysBack) { saveTimePreference(resultType, daysBack, function () { if (viewID == 0) { viewID = ”; } savePreference(‘dashboard’, ‘selectedSavedFilterId.3’, viewID, function () { saveTagAndGo(tagValue, resultType); }); }); } function saveTagAndGo(tagValue, resultType) { savePreference(‘tag’, ‘selectedTag’, tagValue, function () { savePreference(‘tag’, ‘selectedTagType’, resultType, function () { goToListFromDashboard(3); }); }); } function goToFolder(folderValue, resultType) { savePreference(‘folder’, ‘selectedFolder’, folderValue, function () { savePreference(‘folder’, ‘selectedFolderType’, resultType, function () { window.changePage(‘#dashList=2&rT=’ + resultType + ‘&start=0’); }); }); } function deleteIndividualOrganizationContact(orgId) { if (confirm(“Removing selected organization(s) will remove individual contacts belonging to the organization”)) { var orgIds = [orgId]; deleteOrganizationContacts(orgIds); } } function deleteSelectedOrganizationContacts() { var orgIds = window.getSelectedItems(); if (!orgIds.length) { modalAlert(‘You must select one or more account.’); return; } if (confirm(“Removing selected organization(s) will remove individual contacts belonging to the organization”)) { deleteOrganizationContacts(orgIds); } } function openShareMarkupsWithAccount(initAuto) { var type = “markup”; var buttons = [{ text: ‘Continue’, onClick: function () { if (!catalogSelected) { alert(‘Please select a catalog’) } else if (catalogSelected && !markupSelected) { alert(‘Please select a markup’) } else if (catalogSelected && markupSelected) { shareMarkupsWithSelectedAndEmail(); } } }]; var title = “Share Markup”; openShareItemsWithAccountModal(initAuto, type, buttons, title); } function openShareDrcWithAccount(initAuto) { var type = “darc”; var buttons = [{ text: ‘Share’, onClick: function () { ShareDARC(); closeDialogs(); } }]; var title = “Share Digital Review Copy”; openShareItemsWithAccountModal(initAuto, type, buttons, title); } function openShareItemsWithAccountModal(initAuto, type, buttons, title) { var contacts = window.getSelectedItems(); if (!contacts.length) { modalAlert(‘You must select one or more account.’); return; } if (!_.isNil(contacts)) { var contactList = contacts.join(); var url = “/GetTreelineControl.aspx?controlName=/uc/contacts/shares/ShareItemWithContact.ascx&type=” + type + “&initAuto=” + initAuto + “&contactList=” + contactList; openDialog({ id: “accountItemShare”, url: url, isModal: false, title: title, buttons: buttons, width: “800px”, height: “500px”, onClose: function () { $(‘.ac_results’).remove(); } }); } } function moreOrLessWidget(resultType, laneId, widgetId, more) { var savedPrefValue = 1; if (more != 1) { savedPrefValue = “”; } savePreference(‘dashboard’, ‘WidgetMore.’ + resultType + ‘.’ + widgetId, savedPrefValue); $(“#dashLane_” + laneId).toggleClass(“showMore”, more == 1); window.ePlus.modules.dashboard.populateDashLane(resultType, laneId, widgetId, more); } function getCatalogAdminOrgId() { return $(‘#catalogAdminOrgId’).length ? $(‘#catalogAdminOrgId’).val() : ”; } function convertFilterTypesToNames(filterType) { switch (filterType) { case 201: return “CatalogType”; case 61: return “isActive”; case 3: return “PubDateRefine”; case 4: return “PubType”; case 20: return “Order”; case 90: return “Order”; case 5: return “Author”; case 30: return “User”; case 0: return “Publisher”; case 51: return “Honors”; case 8: return “Thema”; case 11: return “ThemaSubjectQualifier”; case 1: return “Category”; case 7: return “Categories”; case 2: return “Format”; case 125: return “PersonalReviews”; case 10: return “DRCAvailability”; case 1401: return “DrcFormats”; case 135: return “PersonalNotes”; case 70: return “Discount”; case 100: return “OwnedStock”; case 111: return “Priority_Shared”; case 110: return “Priority_Markup”; case 30: return “Person”; case 41: return “Tags_Mine”; case 42: return “Tags_Colleagues”; case 45: return “Tags_Account”; case 43: return “Tags_MarkupShared”; case 137: return “Note_MarkupShared”; case 44: return “Tags_Markup”; case 136: return “Note_Markup”; case 138: return “AccountNote”; case 140: return “UpdatedDateRefine”; case 150: return “CreatedDateRefine”; case 151: return “AppointmentDateRefine”; case 152: return “DateAddedRefine”; case 120: return “DueDateRefine”; case 160: return “BoundVendors”; case 50: return “Account”; case 60: return “RecentActivity”; case 130: return “Submitted”; case 80: return “Suggestions”; case 81: return “Suggestions”; case 145: return “EventRequest”; case 300: return “TextReview”; case 126: return “PeerReviewsRefine”; case 127: return “PeerShelvesRefine”; case 1500: return “CommunityCompsRefine”; case 400: return “Viewed”; case 250: return “submittedToPublisher”; case 260: return “submittedToIndieNext”; case 270: return “submittedToLibraryReads”; case 280: return “submittedToSiba”; case 251: return “publisherSubmissionDateRefine”; case 501: return “UserType”; case 500: return “Confidence”; case 46: return “Titles”; case 47: return “Imprints”; case 48: return “Affiliations”; case 510: return “SingleTitle”; case 511: return “Status”; case 9: return “PriceRangeRefine”; case 601: return “state”; case 600: return “city”; case 801: return “isEdelweissFriend”; case 800: return “isEdelweissUser”; case 900: return “hasDrcRequests”; case 901: return “hasDrcDownloads”; case 950: return “hasReviews”; case 951: return “hasEventGridAccess”; case 700: return “groupNames”; case 802: return “isEdelweissAccount”; case 701: return “orderName”; case 1100: return “distributorName”; case 1101: return “distributorStatus”; case 1103: return “prcStatus”; case 1104: return “printableStatus”; case 139: return “TagsAccountShared”; case 1200: return “markupSharedBy”; case 19: return ‘language’; case 13: return “createdBy”; case 14: return “memberCount”; case 15: return “hasRequirements”; case 1201: return ‘publishingStatus’; case 1202: return ‘productAvailability’; case 1400: return “Communities”; } } function getCompsSelectedOrgId() { var orgId = ”; return orgId; } function doUseLibraryColumnsForComps() { return false; } function isLoginPage() { try { return window.location.href.includes(‘login.edelweiss.plus’); } catch (e) { return true; } } //# sourceURL=HomePage.aspx ]]>
  • Source

    7 Eylül 2022 | Ekranönü | Ozan Varol #shorts

    Merhaba Ben Ozan, Ekran Önü konseptinin yaratıcısıyım.

    Kanala abone olmak için https://wedia.link/OzanVarolAboneOl tıklayınız.
    Shorts videolarımı izlemek için https://wedia.link/OzanVarolShorts- tıklayınız.
    Instagram hesabını takip etmek için https://www.instagram.com/varolozan/ tıklayınız.

    1992 Çorlu doğumluyum. Çalışma Ekonomisi okurken Konservatuar için okulu bırakmak istedim ama olmadı.. Bol gözyaşlı aile sohbetinin ardından İstanbul’a geldim, Craft Oyunculuk Atölyesine başladım ve tam mezun oldum derken pandemi başladı.. Can sıkıntısı ve gözlem huyum; Deniz ile bana ekranönünü kattı ve ekranönü bizim kedimiz gibi oldu

    #OzanVarol #EkranÖnü #shorts

    « Previous Page — Next Page »