Created
July 24, 2014 20:08
-
-
Save beck03076/b55d86ca29fe0e9e5989 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 render: function() { | |
27 this._super("render", []); | |
28 if(this.options.order_popup === 'true') { | |
29 this._postOrderTasks(); | |
30 } | |
31 this._initSlider(); | |
32 }, | |
33 getSpecificTemplateValues: function() { | |
34 var speed_bucket = bootstrapData.speed_bucket=="VERY_SLOW"?"SLOW":[bootstrapData.speed_bucket]; | |
35 if(!this.model.attributes.banners.length){ | |
36 this.model.attributes.banners = [{ images: {large: "/images/slideshow_1.jpg" }, show_image: "/images/slideshow_1.jpg", tar get:"javascript:void(0)"}, {images: { large: "/images/slideshow_2.jpg" }, show_image: "/images/slideshow_2.jpg", target:"javascript: void(0)"}]; | |
37 }else{ | |
38 for(var j=0;j<this.model.attributes.banners.length;j++){ | |
39 this.model.attributes.banners[j].show_image = bootstrapData.showHdImage && this.model.attributes.banners[j].images[boots trapData.image_bucket[bootstrapData.showHdImage]]?this.model.attributes.banners[j].images[bootstrapData.image_bucket[bootstrapData.s howHdImage]]:this.model.attributes.banners[j].images[bootstrapData.image_bucket[speed_bucket]]; | |
40 } | |
41 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment