View | Details | Raw Unified | Return to bug 21751
Collapse All | Expand All

(-)a/gulpfile.js (-1 / +1 lines)
Lines 52-58 gulp.task('build', function() { Link Here
52
    return gulp.src( css_base + "/src/**/*.scss" )
52
    return gulp.src( css_base + "/src/**/*.scss" )
53
      .pipe(sass( sassOptions ).on('error', sass.logError))
53
      .pipe(sass( sassOptions ).on('error', sass.logError))
54
      .pipe(autoprefixer())
54
      .pipe(autoprefixer())
55
      .pipe(cssnano())
55
      .pipe(cssnano({ zindex: false }))
56
      .pipe(gulp.dest( css_base ));
56
      .pipe(gulp.dest( css_base ));
57
});
57
});
58
58
(-)a/koha-tmpl/intranet-tmpl/lib/hc-sticky.js (+11 lines)
Line 0 Link Here
1
/*!
2
 * HC-Sticky
3
 * =========
4
 * Version: 2.2.3
5
 * Author: Some Web Media
6
 * Author URL: http://somewebmedia.com
7
 * Plugin URL: https://github.com/somewebmedia/hc-sticky
8
 * Description: Cross-browser plugin that makes any element on your page visible while you scroll
9
 * License: MIT
10
 */
11
!function(t,e){"use strict";if("object"==typeof module&&"object"==typeof module.exports){if(!t.document)throw new Error("HC-Sticky requires a browser to run.");module.exports=e(t)}else"function"==typeof define&&define.amd?define("hcSticky",[],e(t)):e(t)}("undefined"!=typeof window?window:this,function(U){"use strict";var Y={top:0,bottom:0,bottomEnd:0,innerTop:0,innerSticker:null,stickyClass:"sticky",stickTo:null,followScroll:!0,responsive:null,mobileFirst:!1,onStart:null,onStop:null,onBeforeResize:null,onResize:null,resizeDebounce:100,disable:!1,queries:null,queryFlow:"down"},$=function(t,e,o){console.log("%c! HC Sticky:%c "+t+"%c "+o+" is now deprecated and will be removed. Use%c "+e+"%c instead.","color: red","color: darkviolet","color: black","color: darkviolet","color: black")},Q=U.document,X=function(n,f){var o=this;if("string"==typeof n&&(n=Q.querySelector(n)),!n)return!1;f.queries&&$("queries","responsive","option"),f.queryFlow&&$("queryFlow","mobileFirst","option");var p={},d=X.Helpers,s=n.parentNode;"static"===d.getStyle(s,"position")&&(s.style.position="relative");var u=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};d.isEmptyObject(t)&&!d.isEmptyObject(p)||(p=Object.assign({},Y,p,t))},t=function(){return p.disable},e=function(){var t,e=p.responsive||p.queries;if(e){var o=U.innerWidth;if(t=f,(p=Object.assign({},Y,t||{})).mobileFirst)for(var i in e)i<=o&&!d.isEmptyObject(e[i])&&u(e[i]);else{var n=[];for(var s in e){var r={};r[s]=e[s],n.push(r)}for(var l=n.length-1;0<=l;l--){var a=n[l],c=Object.keys(a)[0];o<=c&&!d.isEmptyObject(a[c])&&u(a[c])}}}},r={css:{},position:null,stick:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};d.hasClass(n,p.stickyClass)||(!1===l.isAttached&&l.attach(),r.position="fixed",n.style.position="fixed",n.style.left=l.offsetLeft+"px",n.style.width=l.width,void 0===t.bottom?n.style.bottom="auto":n.style.bottom=t.bottom+"px",void 0===t.top?n.style.top="auto":n.style.top=t.top+"px",n.classList?n.classList.add(p.stickyClass):n.className+=" "+p.stickyClass,p.onStart&&p.onStart.call(n,Object.assign({},p)))},release:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(t.stop=t.stop||!1,!0===t.stop||"fixed"===r.position||null===r.position||!(void 0===t.top&&void 0===t.bottom||void 0!==t.top&&(parseInt(d.getStyle(n,"top"))||0)===t.top||void 0!==t.bottom&&(parseInt(d.getStyle(n,"bottom"))||0)===t.bottom)){!0===t.stop?!0===l.isAttached&&l.detach():!1===l.isAttached&&l.attach();var e=t.position||r.css.position;r.position=e,n.style.position=e,n.style.left=!0===t.stop?r.css.left:l.positionLeft+"px",n.style.width="absolute"!==e?r.css.width:l.width,void 0===t.bottom?n.style.bottom=!0===t.stop?"":"auto":n.style.bottom=t.bottom+"px",void 0===t.top?n.style.top=!0===t.stop?"":"auto":n.style.top=t.top+"px",n.classList?n.classList.remove(p.stickyClass):n.className=n.className.replace(new RegExp("(^|\\b)"+p.stickyClass.split(" ").join("|")+"(\\b|$)","gi")," "),p.onStop&&p.onStop.call(n,Object.assign({},p))}}},l={el:Q.createElement("div"),offsetLeft:null,positionLeft:null,width:null,isAttached:!1,init:function(){for(var t in l.el.className="sticky-spacer",r.css)l.el.style[t]=r.css[t];l.el.style["z-index"]="-1";var e=d.getStyle(n);l.offsetLeft=d.offset(n).left-(parseInt(e.marginLeft)||0),l.positionLeft=d.position(n).left,l.width=d.getStyle(n,"width")},attach:function(){s.insertBefore(l.el,n),l.isAttached=!0},detach:function(){l.el=s.removeChild(l.el),l.isAttached=!1}},a=void 0,c=void 0,g=void 0,m=void 0,h=void 0,v=void 0,y=void 0,b=void 0,S=void 0,w=void 0,k=void 0,E=void 0,x=void 0,L=void 0,T=void 0,j=void 0,O=void 0,C=void 0,i=function(){var t,e,o,i;r.css=(t=n,e=d.getCascadedStyle(t),o=d.getStyle(t),i={height:t.offsetHeight+"px",left:e.left,right:e.right,top:e.top,bottom:e.bottom,position:o.position,display:o.display,verticalAlign:o.verticalAlign,boxSizing:o.boxSizing,marginLeft:e.marginLeft,marginRight:e.marginRight,marginTop:e.marginTop,marginBottom:e.marginBottom,paddingLeft:e.paddingLeft,paddingRight:e.paddingRight},e.float&&(i.float=e.float||"none"),e.cssFloat&&(i.cssFloat=e.cssFloat||"none"),o.MozBoxSizing&&(i.MozBoxSizing=o.MozBoxSizing),i.width="auto"!==e.width?e.width:"border-box"===i.boxSizing||"border-box"===i.MozBoxSizing?t.offsetWidth+"px":o.width,i),l.init(),a=!(!p.stickTo||!("document"===p.stickTo||p.stickTo.nodeType&&9===p.stickTo.nodeType||"object"==typeof p.stickTo&&p.stickTo instanceof("undefined"!=typeof HTMLDocument?HTMLDocument:Document))),c=p.stickTo?a?Q:"string"==typeof p.stickTo?Q.querySelector(p.stickTo):p.stickTo:s,T=(C=function(){var t=n.offsetHeight+(parseInt(r.css.marginTop)||0)+(parseInt(r.css.marginBottom)||0),e=(T||0)-t;return-1<=e&&e<=1?T:t})(),m=(O=function(){return a?Math.max(Q.documentElement.clientHeight,Q.body.scrollHeight,Q.documentElement.scrollHeight,Q.body.offsetHeight,Q.documentElement.offsetHeight):c.offsetHeight})(),h=a?0:d.offset(c).top,v=p.stickTo?a?0:d.offset(s).top:h,y=U.innerHeight,j=n.offsetTop-(parseInt(r.css.marginTop)||0),g=p.innerSticker?"string"==typeof p.innerSticker?Q.querySelector(p.innerSticker):p.innerSticker:null,b=isNaN(p.top)&&-1<p.top.indexOf("%")?parseFloat(p.top)/100*y:p.top,S=isNaN(p.bottom)&&-1<p.bottom.indexOf("%")?parseFloat(p.bottom)/100*y:p.bottom,w=g?g.offsetTop:p.innerTop?p.innerTop:0,k=isNaN(p.bottomEnd)&&-1<p.bottomEnd.indexOf("%")?parseFloat(p.bottomEnd)/100*y:p.bottomEnd,E=h-b+w+j},z=U.pageYOffset||Q.documentElement.scrollTop,N=0,H=void 0,R=function(){T=C(),m=O(),x=h+m-b-k,L=y<T;var t=U.pageYOffset||Q.documentElement.scrollTop,e=d.offset(n).top,o=e-t,i=void 0;H=t<z?"up":"down",N=t-z,E<(z=t)?x+b+(L?S:0)-(p.followScroll&&L?0:b)<=t+T-w-(y-(E-w)<T-w&&p.followScroll&&0<(i=T-y-w)?i:0)?r.release({position:"absolute",bottom:v+s.offsetHeight-x-b}):L&&p.followScroll?"down"===H?o+T+S<=y+.9?r.stick({bottom:S}):"fixed"===r.position&&r.release({position:"absolute",top:e-b-E-N+w}):Math.ceil(o+w)<0&&"fixed"===r.position?r.release({position:"absolute",top:e-b-E+w-N}):t+b-w<=e&&r.stick({top:b-w}):r.stick({top:b-w}):r.release({stop:!0})},A=!1,B=!1,I=function(){A&&(d.event.unbind(U,"scroll",R),A=!1)},q=function(){null!==n.offsetParent&&"none"!==d.getStyle(n,"display")?(i(),m<=T?I():(R(),A||(d.event.bind(U,"scroll",R),A=!0))):I()},F=function(){n.style.position="",n.style.left="",n.style.top="",n.style.bottom="",n.style.width="",n.classList?n.classList.remove(p.stickyClass):n.className=n.className.replace(new RegExp("(^|\\b)"+p.stickyClass.split(" ").join("|")+"(\\b|$)","gi")," "),r.css={},!(r.position=null)===l.isAttached&&l.detach()},M=function(){F(),e(),t()?I():q()},D=function(){p.onBeforeResize&&p.onBeforeResize.call(n,Object.assign({},p)),M(),p.onResize&&p.onResize.call(n,Object.assign({},p))},P=p.resizeDebounce?d.debounce(D,p.resizeDebounce):D,W=function(){B&&(d.event.unbind(U,"resize",P),B=!1),I()},V=function(){B||(d.event.bind(U,"resize",P),B=!0),e(),t()?I():q()};this.options=function(t){return t?p[t]:Object.assign({},p)},this.refresh=M,this.update=function(t){u(t),f=Object.assign({},f,t||{}),M()},this.attach=V,this.detach=W,this.destroy=function(){W(),F()},this.triggerMethod=function(t,e){"function"==typeof o[t]&&o[t](e)},this.reinit=function(){$("reinit","refresh","method"),M()},u(f),V(),d.event.bind(U,"load",M)};if(void 0!==U.jQuery){var i=U.jQuery,n="hcSticky";i.fn.extend({hcSticky:function(e,o){return this.length?"options"===e?i.data(this.get(0),n).options():this.each(function(){var t=i.data(this,n);t?t.triggerMethod(e,o):(t=new X(this,e),i.data(this,n,t))}):this}})}return U.hcSticky=U.hcSticky||X,X}),function(c){"use strict";var t=c.hcSticky,f=c.document;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n)for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(o[s]=n[s])}return o},writable:!0,configurable:!0}),Array.prototype.forEach||(Array.prototype.forEach=function(t){var e,o;if(null==this)throw new TypeError("this is null or not defined");var i=Object(this),n=i.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(1<arguments.length&&(e=arguments[1]),o=0;o<n;){var s;o in i&&(s=i[o],t.call(e,s,o,i)),o++}});var e=function(){var t=f.documentElement,e=function(){};function i(t){var e=c.event;return e.target=e.target||e.srcElement||t,e}t.addEventListener?e=function(t,e,o){t.addEventListener(e,o,!1)}:t.attachEvent&&(e=function(e,t,o){e[t+o]=o.handleEvent?function(){var t=i(e);o.handleEvent.call(o,t)}:function(){var t=i(e);o.call(e,t)},e.attachEvent("on"+t,e[t+o])});var o=function(){};return t.removeEventListener?o=function(t,e,o){t.removeEventListener(e,o,!1)}:t.detachEvent&&(o=function(e,o,i){e.detachEvent("on"+o,e[o+i]);try{delete e[o+i]}catch(t){e[o+i]=void 0}}),{bind:e,unbind:o}}(),r=function(t,e){return c.getComputedStyle?e?f.defaultView.getComputedStyle(t,null).getPropertyValue(e):f.defaultView.getComputedStyle(t,null):t.currentStyle?e?t.currentStyle[e.replace(/-\w/g,function(t){return t.toUpperCase().replace("-","")})]:t.currentStyle:void 0},l=function(t){var e=t.getBoundingClientRect(),o=c.pageYOffset||f.documentElement.scrollTop,i=c.pageXOffset||f.documentElement.scrollLeft;return{top:e.top+o,left:e.left+i}};t.Helpers={isEmptyObject:function(t){for(var e in t)return!1;return!0},debounce:function(i,n,s){var r=void 0;return function(){var t=this,e=arguments,o=s&&!r;clearTimeout(r),r=setTimeout(function(){r=null,s||i.apply(t,e)},n),o&&i.apply(t,e)}},hasClass:function(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)},offset:l,position:function(t){var e=t.offsetParent,o=l(e),i=l(t),n=r(e),s=r(t);return o.top+=parseInt(n.borderTopWidth)||0,o.left+=parseInt(n.borderLeftWidth)||0,{top:i.top-o.top-(parseInt(s.marginTop)||0),left:i.left-o.left-(parseInt(s.marginLeft)||0)}},getStyle:r,getCascadedStyle:function(t){var e=t.cloneNode(!0);e.style.display="none",Array.prototype.slice.call(e.querySelectorAll('input[type="radio"]')).forEach(function(t){t.removeAttribute("name")}),t.parentNode.insertBefore(e,t.nextSibling);var o=void 0;e.currentStyle?o=e.currentStyle:c.getComputedStyle&&(o=f.defaultView.getComputedStyle(e,null));var i={};for(var n in o)!isNaN(n)||"string"!=typeof o[n]&&"number"!=typeof o[n]||(i[n]=o[n]);if(Object.keys(i).length<3)for(var s in i={},o)isNaN(s)||(i[o[s].replace(/-\w/g,function(t){return t.toUpperCase().replace("-","")})]=o.getPropertyValue(o[s]));if(i.margin||"auto"!==i.marginLeft?i.margin||i.marginLeft!==i.marginRight||i.marginLeft!==i.marginTop||i.marginLeft!==i.marginBottom||(i.margin=i.marginLeft):i.margin="auto",!i.margin&&"0px"===i.marginLeft&&"0px"===i.marginRight){var r=t.offsetLeft-t.parentNode.offsetLeft,l=r-(parseInt(i.left)||0)-(parseInt(i.right)||0),a=t.parentNode.offsetWidth-t.offsetWidth-r-(parseInt(i.right)||0)+(parseInt(i.left)||0)-l;0!==a&&1!==a||(i.margin="auto")}return e.parentNode.removeChild(e),e=null,i},event:e}}(window);
(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (-12 / +11 lines)
Lines 1651-1656 dd { Link Here
1651
    border-radius: 5px 5px 0 0;
1651
    border-radius: 5px 5px 0 0;
1652
    margin: 0;
1652
    margin: 0;
1653
    padding: 5px;
1653
    padding: 5px;
1654
1655
    .dropdown-menu {
1656
        border-top-width: 1px;
1657
        font-size: 13px;
1658
    }
1659
1660
    &.floating {
1661
        border-radius: 0;
1662
        margin-top: 0;
1663
    }
1654
}
1664
}
1655
1665
1656
#disabled {
1666
#disabled {
Lines 3283-3300 button, Link Here
3283
    padding: 3px 5px;
3293
    padding: 3px 5px;
3284
}
3294
}
3285
3295
3286
#toolbar {
3287
    .dropdown-menu {
3288
        border-top-width: 1px;
3289
        font-size: 13px;
3290
    }
3291
3292
    &.floating {
3293
        border-radius: 0;
3294
        margin-top: 0;
3295
    }
3296
}
3297
3298
.dropdown-menu {
3296
.dropdown-menu {
3299
    border-color: rgba(0, 0, 0, .2);
3297
    border-color: rgba(0, 0, 0, .2);
3300
    border-top: 0;
3298
    border-top: 0;
Lines 3643-3648 progress { Link Here
3643
3641
3644
.floating {
3642
.floating {
3645
    box-shadow: 0 3px 2px 0 rgba(0, 0, 0, .5);
3643
    box-shadow: 0 3px 2px 0 rgba(0, 0, 0, .5);
3644
    z-index: 100;
3646
}
3645
}
3647
3646
3648
.inline {
3647
.inline {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt (+3 lines)
Lines 1061-1066 Link Here
1061
1061
1062
            <h2>Noto fonts</h2>
1062
            <h2>Noto fonts</h2>
1063
            <p><a href="https://github.com/googlei18n/noto-fonts">Noto</a> by Google is a family of fonts licensed under the <a href="http://scripts.sil.org/OFL">SIL Open Font License (OFL) v1.1</a>.</p>
1063
            <p><a href="https://github.com/googlei18n/noto-fonts">Noto</a> by Google is a family of fonts licensed under the <a href="http://scripts.sil.org/OFL">SIL Open Font License (OFL) v1.1</a>.</p>
1064
1065
            <h2>HC Sticky</h2>
1066
            <p><a href="http://somewebmedia.com/hc-sticky/">HC Sticky</a> by Some Web Media is a JavaScript library that makes any element on your page visible while you scroll, licensed under the <a href="https://github.com/somewebmedia/hc-sticky/blob/master/LICENSE">MIT license</a>.</p>
1064
        </div>
1067
        </div>
1065
1068
1066
        <div id="translations">
1069
        <div id="translations">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt (-2 / +11 lines)
Lines 765-771 Link Here
765
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
765
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
766
    [% INCLUDE 'datatables.inc' %]
766
    [% INCLUDE 'datatables.inc' %]
767
    [% INCLUDE 'columns_settings.inc' %]
767
    [% INCLUDE 'columns_settings.inc' %]
768
    [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") | $raw %]
768
    [% Asset.js("lib/hc-sticky.js") | $raw %]
769
    <script>
769
    <script>
770
        function updateColumnsVisibility(visible) {
770
        function updateColumnsVisibility(visible) {
771
            if ( visible ) {
771
            if ( visible ) {
Lines 779-786 Link Here
779
            }
779
            }
780
        }
780
        }
781
781
782
        var Sticky;
783
782
        $(document).ready(function() {
784
        $(document).ready(function() {
783
            if ( $('#toolbar').length ) {$('#toolbar').fixFloat();}
785
            if ( $('#toolbar').length ) {
786
                Sticky = $("#toolbar");
787
                Sticky.hcSticky({
788
                    stickTo: "#yui-main",
789
                    stickyClass: "floating"
790
                });
791
            }
792
784
            [% UNLESS ( closedate ) %]
793
            [% UNLESS ( closedate ) %]
785
                $('#addtoBasket').on('show', function () {
794
                $('#addtoBasket').on('show', function () {
786
                   $(this).find(".modal-body").html($(".acqui_basket_add")[0].outerHTML);
795
                   $(this).find(".modal-body").html($(".acqui_basket_add")[0].outerHTML);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt (-2 / +9 lines)
Lines 388-394 Link Here
388
</div> <!-- /.row -->
388
</div> <!-- /.row -->
389
[% MACRO jsinclude BLOCK %]
389
[% MACRO jsinclude BLOCK %]
390
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
390
    [% Asset.js("js/acquisitions-menu.js") | $raw %]
391
    [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") | $raw %]
391
    [% Asset.js("lib/hc-sticky.js") | $raw %]
392
    [% INCLUDE 'datatables.inc' %]
392
    [% INCLUDE 'datatables.inc' %]
393
    <script>
393
    <script>
394
        function confirm_deletion() {
394
        function confirm_deletion() {
Lines 422-427 Link Here
422
            ev.preventDefault();
422
            ev.preventDefault();
423
        }
423
        }
424
424
425
        var Sticky;
426
425
         $(document).ready(function() {
427
         $(document).ready(function() {
426
            var contractst = $("#contractst").dataTable($.extend(true, {}, dataTablesDefaults, {
428
            var contractst = $("#contractst").dataTable($.extend(true, {}, dataTablesDefaults, {
427
                "aoColumnDefs": [
429
                "aoColumnDefs": [
Lines 459-465 Link Here
459
            $('body').on('click', '.contact_claimissues', null, function () {
461
            $('body').on('click', '.contact_claimissues', null, function () {
460
                $(this).next('.contact_claimissues_hidden').val($(this).is(':checked') ? '1' : '0');
462
                $(this).next('.contact_claimissues_hidden').val($(this).is(':checked') ? '1' : '0');
461
            });
463
            });
462
            $('#toolbar').fixFloat();
464
465
            Sticky = $("#toolbar");
466
            Sticky.hcSticky({
467
                stickTo: "main",
468
                stickyClass: "floating"
469
            });
463
        });
470
        });
464
    </script>
471
    </script>
465
[% END %]
472
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt (-5 / +9 lines)
Lines 159-172 Link Here
159
159
160
[% MACRO jsinclude BLOCK %]
160
[% MACRO jsinclude BLOCK %]
161
    [% INCLUDE 'datatables.inc' %]
161
    [% INCLUDE 'datatables.inc' %]
162
    [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") | $raw %]
162
    [% Asset.js("lib/hc-sticky.js") | $raw %]
163
    [% Asset.js("lib/jquery/plugins/multiple-select/jquery.multiple.select.js") | $raw %]
163
    [% Asset.js("lib/jquery/plugins/multiple-select/jquery.multiple.select.js") | $raw %]
164
    <script>
164
    <script>
165
        [% UNLESS ( searchfield ) %]$(document).ready(function(){
165
        var Sticky;
166
                $('#toolbar').fixFloat();
167
            });[% END %]
168
169
        $(document).ready(function(){
166
        $(document).ready(function(){
167
            [% UNLESS ( searchfield ) %]
168
                Sticky = $("#toolbar");
169
                Sticky.hcSticky({
170
                    stickTo: "main",
171
                    stickyClass: "floating"
172
                });
173
            [% END %]
170
            $("select[multiple='multiple']").multipleSelect( {
174
            $("select[multiple='multiple']").multipleSelect( {
171
                placeholder: _("Please select ..."),
175
                placeholder: _("Please select ..."),
172
                selectAllText: _("Select all"),
176
                selectAllText: _("Select all"),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt (-2 / +7 lines)
Lines 3-9 Link Here
3
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Authorities &rsaquo; [% IF ( authid ) %]Modify authority #[% authid | html %] ([% authtypetext | html %])[% ELSE %]Adding authority ([% authtypetext | html %])[% END %]</title>
4
<title>Koha &rsaquo; Authorities &rsaquo; [% IF ( authid ) %]Modify authority #[% authid | html %] ([% authtypetext | html %])[% ELSE %]Adding authority ([% authtypetext | html %])[% END %]</title>
5
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") | $raw %]
6
[% Asset.js("lib/hc-sticky.js") | $raw %]
7
[% Asset.js("js/cataloging.js") | $raw %]
7
[% Asset.js("js/cataloging.js") | $raw %]
8
8
9
<script type="text/javascript">
9
<script type="text/javascript">
Lines 11-19 Link Here
11
    $(window).load(function(){
11
    $(window).load(function(){
12
        $("#loading").hide();
12
        $("#loading").hide();
13
    });
13
    });
14
    var Sticky;
14
	 $(document).ready(function() {
15
	 $(document).ready(function() {
15
        $('#authoritytabs').tabs();
16
        $('#authoritytabs').tabs();
16
        $('#toolbar').fixFloat();
17
        Sticky = $("#toolbar");
18
        Sticky.hcSticky({
19
            stickTo: ".main",
20
            stickyClass: "floating"
21
        });
17
        $("#addauth").click(function(){
22
        $("#addauth").click(function(){
18
            if(Check()){
23
            if(Check()){
19
                $("#f").submit();
24
                $("#f").submit();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt (-2 / +7 lines)
Lines 279-285 Link Here
279
</div>
279
</div>
280
280
281
[% MACRO jsinclude BLOCK %]
281
[% MACRO jsinclude BLOCK %]
282
    [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") | $raw %]
282
    [% Asset.js("lib/hc-sticky.js") | $raw %]
283
    <script type="text/JavaScript">
283
    <script type="text/JavaScript">
284
        /**
284
        /**
285
         *  Function add_field();
285
         *  Function add_field();
Lines 292-301 Link Here
292
            dad.appendChild(line.cloneNode(true));
292
            dad.appendChild(line.cloneNode(true));
293
            line.removeChild(ButtonPlus);
293
            line.removeChild(ButtonPlus);
294
        }
294
        }
295
        var Sticky;
295
        $(document).ready(function() {
296
        $(document).ready(function() {
296
            $("input[name=q]:eq(0)").focus();
297
            $("input[name=q]:eq(0)").focus();
297
            $('#advsearches').tabs();
298
            $('#advsearches').tabs();
298
            $('#toolbar').fixFloat();
299
            Sticky = $("#toolbar");
300
            Sticky.hcSticky({
301
                stickTo: ".main",
302
                stickyClass: "floating"
303
            });
299
            $("#branchloop").on("change",function(){
304
            $("#branchloop").on("change",function(){
300
                if( this.value != ""){
305
                if( this.value != ""){
301
                    document.getElementById("categoryloop").disabled=true;
306
                    document.getElementById("categoryloop").disabled=true;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt (-3 / +7 lines)
Lines 218-224 Link Here
218
[% MACRO jsinclude BLOCK %]
218
[% MACRO jsinclude BLOCK %]
219
    [% INCLUDE 'datatables.inc' %]
219
    [% INCLUDE 'datatables.inc' %]
220
    [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
220
    [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
221
    [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") | $raw %]
221
    [% Asset.js("lib/hc-sticky.js") | $raw %]
222
    <script type="text/javascript">
222
    <script type="text/javascript">
223
        var authorised_values = [% authorised_values_json | html %];
223
        var authorised_values = [% authorised_values_json | html %];
224
224
Lines 410-418 Link Here
410
                ]
410
                ]
411
            });
411
            });
412
        }
412
        }
413
413
        var Sticky;
414
        $(document).ready(function () {
414
        $(document).ready(function () {
415
            $('#toolbar').fixFloat();
415
            Sticky = $("#toolbar");
416
            Sticky.hcSticky({
417
                stickTo: "#item-search-block",
418
                stickyClass: "floating"
419
            });
416
            // Add the "New field" link.
420
            // Add the "New field" link.
417
            var form_field = $('div.form-field-select-text').last()
421
            var form_field = $('div.form-field-select-text').last()
418
            var NEW_FIELD = _("New field");
422
            var NEW_FIELD = _("New field");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-4 / +7 lines)
Lines 632-638 Link Here
632
[% MACRO jsinclude BLOCK %]
632
[% MACRO jsinclude BLOCK %]
633
    [% INCLUDE 'browser-strings.inc' %]
633
    [% INCLUDE 'browser-strings.inc' %]
634
    [% Asset.js("js/browser.js") | $raw %]
634
    [% Asset.js("js/browser.js") | $raw %]
635
    [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") | $raw %]
635
    [% Asset.js("lib/hc-sticky.js") | $raw %]
636
    [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
636
    [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
637
    <script type="text/javascript">
637
    <script type="text/javascript">
638
        var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
638
        var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
Lines 658-667 Link Here
658
                verify_images();
658
                verify_images();
659
            });
659
            });
660
        [% END %]
660
        [% END %]
661
661
        var Sticky;
662
        $(document).ready(function() {
662
        $(document).ready(function() {
663
663
            Sticky = $("#searchheader");
664
            $("#searchheader").fixFloat();
664
            Sticky.hcSticky({
665
                stickTo: "#yui-main",
666
                stickyClass: "floating"
667
            });
665
668
666
            $("#cartsubmit").click(function(e){
669
            $("#cartsubmit").click(function(e){
667
                e.preventDefault();
670
                e.preventDefault();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt (-2 / +7 lines)
Lines 4-10 Link Here
4
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Cataloging &rsaquo; [% IF ( biblionumber ) %]Editing [% title | html %] (Record number [% biblionumber | html %])[% ELSE %]Add MARC record[% END %]</title>
5
<title>Koha &rsaquo; Cataloging &rsaquo; [% IF ( biblionumber ) %]Editing [% title | html %] (Record number [% biblionumber | html %])[% ELSE %]Add MARC record[% END %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") | $raw %]
7
[% Asset.js("lib/hc-sticky.js") | $raw %]
8
[% Asset.js("js/cataloging.js") | $raw %]
8
[% Asset.js("js/cataloging.js") | $raw %]
9
[% INCLUDE 'browser-strings.inc' %]
9
[% INCLUDE 'browser-strings.inc' %]
10
[% Asset.js("js/browser.js") | $raw %]
10
[% Asset.js("js/browser.js") | $raw %]
Lines 16-21 Link Here
16
    $(window).load(function(){
16
    $(window).load(function(){
17
        $("#loading").hide();
17
        $("#loading").hide();
18
    });
18
    });
19
    var Sticky;
19
	 $(document).ready(function() {
20
	 $(document).ready(function() {
20
21
21
        [% IF bib_doesnt_exist %]
22
        [% IF bib_doesnt_exist %]
Lines 31-37 Link Here
31
          $('#addbibliotabs').selectTabByID("#[% tab | html %]");
32
          $('#addbibliotabs').selectTabByID("#[% tab | html %]");
32
        [% END %]
33
        [% END %]
33
34
34
        $('#toolbar').fixFloat();
35
        Sticky = $("#toolbar");
36
        Sticky.hcSticky({
37
            stickTo: ".main",
38
            stickyClass: "floating"
39
        });
35
40
36
        /* check cookie to hide/show marcdocs*/
41
        /* check cookie to hide/show marcdocs*/
37
        if($.cookie("marcdocs_[% borrowernumber | html %]") == 'hide'){
42
        if($.cookie("marcdocs_[% borrowernumber | html %]") == 'hide'){
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_008.tt (-3 / +8 lines)
Lines 15-21 Link Here
15
</table>
15
</table>
16
<h4 id="h4_result">&quot;[% result | html %]&quot;</h4>
16
<h4 id="h4_result">&quot;[% result | html %]&quot;</h4>
17
17
18
<form name="f_pop" id="f_pop" onsubmit="report()" action="">
18
<form name="f_pop" id="f_pop" style="display:block" onsubmit="report()" action="">
19
    <div id="toolbar">
19
    <div id="toolbar">
20
        <div class="btn-group">
20
        <div class="btn-group">
21
            <button type="submit" class="btn btn-default btn-sm"><i class="fa fa-save"></i> Save</button>
21
            <button type="submit" class="btn btn-default btn-sm"><i class="fa fa-save"></i> Save</button>
Lines 42-52 Link Here
42
</form>
42
</form>
43
43
44
[% MACRO jsinclude BLOCK %]
44
[% MACRO jsinclude BLOCK %]
45
    [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") | $raw %]
45
    [% Asset.js("lib/hc-sticky.js") | $raw %]
46
    [% Asset.js("js/xmlControlfield.js") | $raw %]
46
    [% Asset.js("js/xmlControlfield.js") | $raw %]
47
    <script>
47
    <script>
48
        var Sticky;
48
        $(document).ready(function(){
49
        $(document).ready(function(){
49
            $('#toolbar').fixFloat();
50
            Sticky = $("#toolbar");
51
            Sticky.hcSticky({
52
                stickTo: "#f_pop",
53
                stickyClass: "floating"
54
            });
50
            $(".close_window").on("click", function(e){
55
            $(".close_window").on("click", function(e){
51
                e.preventDefault();
56
                e.preventDefault();
52
                window.close();
57
                window.close();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/result.tt (-3 / +8 lines)
Lines 38-44 Link Here
38
                No results found
38
                No results found
39
                [% END %]
39
                [% END %]
40
40
41
            <form name="resultform" action="">
41
            <form name="resultform" action="" style="display:block">
42
            <div id="toolbar" class="btn-toolbar">
42
            <div id="toolbar" class="btn-toolbar">
43
                <div class="btn-group"><button type="button" class="btn btn-default btn-sm" id="add_items"><i class="fa fa-plus"></i> Add checked</button></div>
43
                <div class="btn-group"><button type="button" class="btn btn-default btn-sm" id="add_items"><i class="fa fa-plus"></i> Add checked</button></div>
44
                <div class="btn-group"><a href="#" class="btn btn-default btn-sm close"><i class="fa fa-times-circle"></i> Done</a></div>
44
                <div class="btn-group"><a href="#" class="btn btn-default btn-sm close"><i class="fa fa-times-circle"></i> Done</a></div>
Lines 103-112 Link Here
103
    </div>
103
    </div>
104
104
105
[% MACRO jsinclude BLOCK %]
105
[% MACRO jsinclude BLOCK %]
106
    [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") | $raw %]
106
    [% Asset.js("lib/hc-sticky.js") | $raw %]
107
    <script>
107
    <script>
108
        var Sticky;
108
        $(document).ready(function(){
109
        $(document).ready(function(){
109
            $("#toolbar").fixFloat();
110
            Sticky = $("#toolbar");
111
            Sticky.hcSticky({
112
                stickTo: "form",
113
                stickyClass: "floating"
114
            });
110
            $("#CheckAll").click(function(e){
115
            $("#CheckAll").click(function(e){
111
                e.preventDefault();
116
                e.preventDefault();
112
                $("input[type='checkbox']").prop("checked",true);
117
                $("input[type='checkbox']").prop("checked",true);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-25 / +16 lines)
Lines 1141-1167 Link Here
1141
     </div> <!-- /.row -->
1141
     </div> <!-- /.row -->
1142
1142
1143
[% MACRO jsinclude BLOCK %]
1143
[% MACRO jsinclude BLOCK %]
1144
    [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") | $raw %]
1144
    [% Asset.js("lib/hc-sticky.js") | $raw %]
1145
    [% INCLUDE 'calendar.inc' %]
1145
    [% INCLUDE 'calendar.inc' %]
1146
    [% INCLUDE 'str/members-menu.inc' %]
1146
    [% INCLUDE 'str/members-menu.inc' %]
1147
    [% Asset.js("js/members-menu.js") | $raw %]
1147
    [% Asset.js("js/members-menu.js") | $raw %]
1148
    <script>
1148
    <script>
1149
        function update_cardnumber_warning(size){
1150
            var max_len = [% maxlength_cardnumber | html %];
1151
            if ( size >= max_len ) {
1152
                $("#cn_max").show();
1153
            } else {
1154
                $("#cn_max").hide();
1155
            }
1156
        }
1157
        var Sticky;
1149
        $(document).ready(function() {
1158
        $(document).ready(function() {
1150
1159
1151
                $("#saverecord").css({ 'margin-left': 0 });
1160
                $("#saverecord").css({ 'margin-left': 0 });
1152
                var original_offset = $("#toolbar").position().top;
1161
1153
                var additional_height = $("#filters").height();
1162
            Sticky = $("#toolbar");
1154
                $('#toolbar').fixFloat({ 'originalOffset': original_offset });
1163
            Sticky.hcSticky({
1155
                $("#filteraction_on").on("click", function(){
1164
                stickTo: "#yui-main",
1156
                    $(window).off('scroll');
1165
                stickyClass: "floating"
1157
                    $("#toolbar").css({ top: original_offset + additional_height });
1166
            });
1158
                    $('#toolbar').fixFloat({ 'originalOffset': original_offset + additional_height });
1159
                });
1160
                $("#filteraction_off").on("click", function(){
1161
                    $(window).off('scroll');
1162
                    $("#toolbar").css({ top: original_offset });
1163
                    $('#toolbar').fixFloat({ 'originalOffset': original_offset });
1164
                })
1165
1167
1166
            [% IF categorycode %]
1168
            [% IF categorycode %]
1167
                update_category_code( "[% categorycode | html %]" );
1169
                update_category_code( "[% categorycode | html %]" );
Lines 1171-1188 Link Here
1171
                    update_category_code( category_code );
1173
                    update_category_code( category_code );
1172
                }
1174
                }
1173
            [% END %]
1175
            [% END %]
1174
        });
1175
1176
1176
        function update_cardnumber_warning(size){
1177
            var max_len = [% maxlength_cardnumber | html %];
1178
            if ( size >= max_len ) {
1179
                $("#cn_max").show();
1180
            } else {
1181
                $("#cn_max").hide();
1182
            }
1183
        }
1184
1185
        $(document).ready(function() {
1186
            $("#cn_max").hide();
1177
            $("#cn_max").hide();
1187
            var content;
1178
            var content;
1188
            $("#cardnumber").on("keydown", function(e){
1179
            $("#cardnumber").on("keydown", function(e){
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/automatic_item_modification_by_age.tt (-2 / +7 lines)
Lines 229-241 Link Here
229
229
230
[% MACRO jsinclude BLOCK %]
230
[% MACRO jsinclude BLOCK %]
231
    [% Asset.js("js/tools-menu.js") | $raw %]
231
    [% Asset.js("js/tools-menu.js") | $raw %]
232
    [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") | $raw %]
232
    [% Asset.js("lib/hc-sticky.js") | $raw %]
233
    [% Asset.js("js/automatic_item_modification_by_age.js") | $raw %]
233
    [% Asset.js("js/automatic_item_modification_by_age.js") | $raw %]
234
    [% IF op == 'edit_form' %]
234
    [% IF op == 'edit_form' %]
235
        <script>
235
        <script>
236
            var Sticky;
236
            $(document).ready(function() {
237
            $(document).ready(function() {
237
                  [% IF ( op == 'edit_form' ) %]
238
                  [% IF ( op == 'edit_form' ) %]
238
                      $('#toolbar').fixFloat();
239
                Sticky = $("#toolbar");
240
                Sticky.hcSticky({
241
                    stickTo: "main",
242
                    stickyClass: "floating"
243
                });
239
                  [% END %]
244
                  [% END %]
240
                  [% IF rules.size > 0 %]
245
                  [% IF rules.size > 0 %]
241
                      $("#norules").hide();
246
                      $("#norules").hide();
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt (-1 / +1 lines)
Lines 468-474 Link Here
468
    [% Asset.js("js/tools-menu.js") | $raw %]
468
    [% Asset.js("js/tools-menu.js") | $raw %]
469
    [% INCLUDE 'datatables.inc' %]
469
    [% INCLUDE 'datatables.inc' %]
470
    [% INCLUDE 'columns_settings.inc' %]
470
    [% INCLUDE 'columns_settings.inc' %]
471
    [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") | $raw %]
471
    [% Asset.js("lib/hc-sticky.js") | $raw %]
472
    [% Asset.js("lib/jquery/plugins/jquery.insertatcaret.js") | $raw %]
472
    [% Asset.js("lib/jquery/plugins/jquery.insertatcaret.js") | $raw %]
473
    <script>
473
    <script>
474
        var no_op_set = '[% no_op_set | html %]';
474
        var no_op_set = '[% no_op_set | html %]';
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt (-2 / +7 lines)
Lines 443-449 Link Here
443
443
444
    [% IF op == 'view' %]
444
    [% IF op == 'view' %]
445
        [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
445
        [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
446
        [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") | $raw %]
446
        [% Asset.js("lib/hc-sticky.js") | $raw %]
447
    [% END %]
447
    [% END %]
448
    <script>
448
    <script>
449
        var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
449
        var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
Lines 536-543 Link Here
536
        [% END %]
536
        [% END %]
537
537
538
        [% IF shelf AND op == 'view' %]
538
        [% IF shelf AND op == 'view' %]
539
            var Sticky;
539
            $(document).ready(function(){
540
            $(document).ready(function(){
540
                [% IF ( itemsloop ) %]$('#searchheader').fixFloat();[% END %]
541
                Sticky = $("#searchheader");
542
                Sticky.hcSticky({
543
                    stickTo: "#listform",
544
                    stickyClass: "floating"
545
                });
541
                $("span.clearall").html("<a id=\"CheckNone\" href=\"/cgi-bin/koha/shelves.pl\"><i class=\"fa fa-remove\"></i>"+_(" Clear all")+"<\/a>");
546
                $("span.clearall").html("<a id=\"CheckNone\" href=\"/cgi-bin/koha/shelves.pl\"><i class=\"fa fa-remove\"></i>"+_(" Clear all")+"<\/a>");
542
                $("span.checkall").html("<a id=\"CheckAll\" href=\"/cgi-bin/koha/shelves.pl\"><i class=\"fa fa-check\"></i>"+_(" Select all")+"<\/a>");
547
                $("span.checkall").html("<a id=\"CheckAll\" href=\"/cgi-bin/koha/shelves.pl\"><i class=\"fa fa-check\"></i>"+_(" Select all")+"<\/a>");
543
                $("#CheckAll").click(function(){
548
                $("#CheckAll").click(function(){
(-)a/koha-tmpl/intranet-tmpl/prog/js/letter.js (-1 / +7 lines)
Lines 30-38 function checkCodes( new_lettercode, new_branchcode ){ Link Here
30
    });
30
    });
31
}
31
}
32
32
33
var Sticky;
34
33
$(document).ready(function() {
35
$(document).ready(function() {
34
    if( add_form || copy_form ){
36
    if( add_form || copy_form ){
35
        $('#toolbar').fixFloat();
37
        Sticky = $("#toolbar");
38
        Sticky.hcSticky({
39
            stickTo: ".main",
40
            stickyClass: "floating"
41
        });
36
    }
42
    }
37
43
38
    var ntable = KohaTable("lettert", {
44
    var ntable = KohaTable("lettert", {
(-)a/koha-tmpl/intranet-tmpl/prog/js/members-menu.js (+3 lines)
Lines 5-10 $(document).ready(function(){ Link Here
5
        e.preventDefault();
5
        e.preventDefault();
6
        $('#filters').toggle();
6
        $('#filters').toggle();
7
        $('.filteraction').toggle();
7
        $('.filteraction').toggle();
8
        if (typeof Sticky !== "undefined" && typeof hcSticky === "function") {
9
            Sticky.hcSticky('update');
10
        }
8
    });
11
    });
9
    if( advsearch ){
12
    if( advsearch ){
10
        $("#filteraction_on").toggle();
13
        $("#filteraction_on").toggle();
(-)a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js (-2 / +4 lines)
Lines 1-4 Link Here
1
// staff-global.js
1
/* global shortcut delCookie delBasket Sticky */
2
if ( KOHA === undefined ) var KOHA = {};
2
if ( KOHA === undefined ) var KOHA = {};
3
3
4
function _(s) { return s; } // dummy function for gettext
4
function _(s) { return s; } // dummy function for gettext
Lines 71-76 $.fn.selectTabByID = function (tabID) { Link Here
71
    $(".toggle_element").on("click",function(e){
71
    $(".toggle_element").on("click",function(e){
72
        e.preventDefault();
72
        e.preventDefault();
73
        $( $(this).data("element") ).toggle();
73
        $( $(this).data("element") ).toggle();
74
        if (typeof Sticky !== "undefined" && typeof hcSticky === "function") {
75
            Sticky.hcSticky('update');
76
        }
74
    });
77
    });
75
78
76
    var navmenulist = $("#navmenulist");
79
    var navmenulist = $("#navmenulist");
77
- 

Return to bug 21751