hooch 0.10.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/javascripts/hooch.js +17 -4
- data/lib/hooch/version.rb +1 -1
- metadata +1 -1
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: d261ec58dce2ebb61da1e7c523194897ab6a27cd
         | 
| 4 | 
            +
              data.tar.gz: 41696ea92bc5f2daffa1af084820a2863091cde2
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 04f25abd153c92beab28e60e3ab119e0a8d854df9f736ae6e84e3c859c5089b6673beaabe711647e463252ba73af78b678e5bec30f57f63796296b86fafc3d20
         | 
| 7 | 
            +
              data.tar.gz: 1ddf08334534bacc261e576fd9a4c8b492405df27e7db8ad3a7d370f7c9e836ff8c6e282e280558e2634f21cdd97a9346c86ffcd1cd6f1ae450b2dd72c76eb95
         | 
| @@ -130,20 +130,33 @@ var initHooch = function(){ | |
| 130 130 | 
             
                  },
         | 
| 131 131 | 
             
                  getMask: function(){
         | 
| 132 132 | 
             
                    this.$modal_mask = $('#hooch-mask')
         | 
| 133 | 
            -
                    this.$modal_mask.css({height: this.mask_height + 'px', top: this.mask_top + 'px' | 
| 133 | 
            +
                    this.$modal_mask.css({height: this.mask_height + 'px', top: this.mask_top + 'px',
         | 
| 134 | 
            +
                      position: 'absolute', 'z-index': 100000,
         | 
| 135 | 
            +
                      left: 0, right: 0, bottom: 0,
         | 
| 136 | 
            +
                      'background-color': 'rgba(0,0,0,0.5)'
         | 
| 137 | 
            +
                    })
         | 
| 134 138 | 
             
                  },
         | 
| 135 139 | 
             
                  getModal: function(){
         | 
| 136 140 | 
             
                    this.$modal_element = this.$modal_mask.find('#hooch-modal')
         | 
| 137 | 
            -
                    this.$modal_element.css({'max-height': this.modal_height, | 
| 141 | 
            +
                    this.$modal_element.css({'max-height': this.modal_height,
         | 
| 142 | 
            +
                      'margin-top': this.margin, 'margin-bottom': this.margin,
         | 
| 143 | 
            +
                      'padding-bottom': this.padding, 'padding-left': this.padding, 'padding-right': this.padding,
         | 
| 144 | 
            +
                      position: 'relative', float: 'left', 'margin-left': '50%',
         | 
| 145 | 
            +
                      '-webkit-transform': 'translateX(-50%)',
         | 
| 146 | 
            +
                      '-moz-transform': 'translateX(-50%)',
         | 
| 147 | 
            +
                      '-ms-transform': 'translateX(-50%)',
         | 
| 148 | 
            +
                      '-o-transform': 'translateX(-50%)',
         | 
| 149 | 
            +
                      transform: 'translateX(-50%)'})
         | 
| 138 150 | 
             
                  },
         | 
| 139 151 | 
             
                  getContentWrapper: function(){
         | 
| 140 152 | 
             
                    this.$modal_content_wrapper = this.$modal_element.find('#hooch-content')
         | 
| 141 153 | 
             
                    var content_height = this.modal_height - (this.padding*2)
         | 
| 142 | 
            -
                    this.$modal_content_wrapper.css({'overflow-y': 'scroll', 'max-height': content_height})
         | 
| 154 | 
            +
                    this.$modal_content_wrapper.css({'overflow-y': 'scroll', 'max-height': content_height, position: 'relative', float: 'left'})
         | 
| 143 155 | 
             
                    this.$modal_content_wrapper.html(this.$modal_content)        
         | 
| 144 156 | 
             
                  },
         | 
| 145 157 | 
             
                  getDismisser: function(){
         | 
| 146 158 | 
             
                    this.$dismisser = this.$modal_mask.find('#hooch-dismiss')
         | 
| 159 | 
            +
                    this.$dismisser.css({position: 'relative', float: 'right', 'font-size': '22px', 'line-height': '30px'})
         | 
| 147 160 | 
             
                    this.dismisser = new hooch.ModalDismisser(this.$dismisser,this)
         | 
| 148 161 | 
             
                  },
         | 
| 149 162 | 
             
                  close: function(){
         | 
| @@ -160,7 +173,7 @@ var initHooch = function(){ | |
| 160 173 | 
             
                      'mousewheel.hoochModalScroll DOMMouseScroll.hoochModalScroll': function(e) {
         | 
| 161 174 | 
             
                        if(($(e.target).attr('id') == 'hooch-content') || ($(e.target).parents('#hooch-content').length > 0)){
         | 
| 162 175 | 
             
                          var delta = e.originalEvent.wheelDelta
         | 
| 163 | 
            -
                          new_scrolltop = $('#hooch-content').scrollTop()  | 
| 176 | 
            +
                          new_scrolltop = $('#hooch-content').scrollTop() - delta
         | 
| 164 177 | 
             
                          $('#hooch-content').scrollTop(new_scrolltop)
         | 
| 165 178 | 
             
                        }
         | 
| 166 179 | 
             
                        e.preventDefault();
         | 
    
        data/lib/hooch/version.rb
    CHANGED