Skip to content

Commit

Permalink
piwik siteId
Browse files Browse the repository at this point in the history
  • Loading branch information
zzlui committed Oct 12, 2015
1 parent eaec655 commit 7a9ef45
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 12 deletions.
2 changes: 1 addition & 1 deletion app/zzlbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var ZZLBox = function() {

if(window.DEBUG) {
// disable cache in DEBUG mode
window.URIREV = Math.random();
// window.URIREV = Math.random();
}

// save plugins/views/models/collections for later using
Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

<script type="text/javascript">
// debug mode doesn't show error dialog and throw all errors into console
//var DEBUG = true;
var DEBUG = false;
// URIREV added for every ajax-request, this allow to force reset cache
// Math.random() will used for debug mode
var URIREV = 11;
var URIREV = 12;
</script>

<script type="text/javascript" src="/lib/CFInstall.min.js?r10"></script>
Expand Down Expand Up @@ -81,7 +81,7 @@
//var u="https://zzlbox.com/";
var u="/";
_paq.push(['setTrackerUrl', u+'pwk/php']);
_paq.push(['setSiteId', 2]);
_paq.push(['setSiteId', 51669663]);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript';
g.async=true; g.defer=true;
Expand Down
5 changes: 4 additions & 1 deletion plugins/file.media/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ ZZLBox.Plugins.FileMedia = ZZLBox.Plugin.extend({

if(support == 0) {
return;
} else if(support < count && fileset) {
}

if(support < count && fileset) {
warn = '<div class="info" style="' +
'position: absolute; width: 300px; margin-top: 50px; margin-right: -20px;">' +
__('media.supportwarn', support, count) + '</div>';
Expand Down Expand Up @@ -183,6 +185,7 @@ ZZLBox.Plugins.FileMedia = ZZLBox.Plugin.extend({
success: function(fileset, tree) {
that.addMediaList(fileset);
}

});
}
})
Expand Down
2 changes: 1 addition & 1 deletion plugins/file.video/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ZZLBox.Plugins.FileVideo = ZZLBox.Plugin.extend({

fileset: function(item, model, file) {
// ensure that we have video file (not audio or image)
if(parseInt(file.bitrate) > 0 && parseInt(file.width) > 0) {
if(file.ct.indexOf('video') == 0) {
$('<span />').html(', ' + file.width + 'x' + file.height).appendTo(item);
}
}
Expand Down
27 changes: 21 additions & 6 deletions plugins/fileset/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,36 @@ ZZLBox.Plugins.Fileset = ZZLBox.Plugin.extend({
.append('<ul />')
.data('folder', v)
//.append(folder(v));

//
var actel = $('<span />').addClass('fileset-actions-folder').css({
display: 'inline-block',
position: 'relative',
margin: '-100px -5px -100px 5px',
'top': '4px'
}).hide().appendTo(el.children('span').css({
}).appendTo(el.children('span').css({
display: 'inline-block',
position: 'relative'
}).hover(function() {
//actel.toggle();
actel.css('display', 'inline-block');
// actel.css('display', 'inline-block');
}, function(){
actel.css('display', 'none');
// actel.css('display', 'none');
}));

// var actel = $('<span />').addClass('fileset-actions-folder').css({
// display: 'inline-block',
// position: 'relative',
// margin: '-100px -5px -100px 5px',
// 'top': '4px'
// }).hide().appendTo(el.children('span').css({
// display: 'inline-block',
// position: 'relative'
// }).hover(function() {
// //actel.toggle();
// actel.css('display', 'inline-block');
// }, function(){
// actel.css('display', 'none');
// }));
zzlbox.plugins.hook('fileset-actions-folder', actel, model, v.allfiles, v);
});

Expand All @@ -100,9 +115,9 @@ ZZLBox.Plugins.Fileset = ZZLBox.Plugin.extend({
.appendTo(el);

// additional info
var addons = $('<div class="addons" />').appendTo(el).toggle(addonsStatus != 'hide');
var addons = $('<div class="addons" />').appendTo(el);//.toggle(addonsStatus != 'hide');

el.toggleClass('addons-on-hover', addonsStatus == 'hover');
// el.toggleClass('addons-on-hover', addonsStatus == 'hover');

/*if(addonsStatus == 'hover') {
// can't make this via CSS
Expand Down

0 comments on commit 7a9ef45

Please sign in to comment.