Fix regular expression in expose view

- Exclude tif and xcf images from expose view
- Define a global regexp for expose
This commit is contained in:
Hadi Nategh
2015-03-31 13:39:55 +00:00
parent c91fc89b48
commit c5ddcdfcf9
2 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ function expose (widget)
};
// For filtering to only show things we can handle
var mime_regex = new RegExp(/video\/|image\/|audio\//);
var mime_regex = new RegExp(/(video\/)|(image\/:*(?!tif|x-xcf))|(audio\/)/);
// Only one gallery
var gallery = null;
@ -206,7 +206,7 @@ function expose (widget)
init: function()
{
this._super.apply(this, arguments);
this.mime_regexp = mime_regex;
var self=this;
this.expose_options = {
// The Id, element or querySelector of the gallery widget: