mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
We apparently always use '|' in the title, even though masthead uses '/'. It does look better.
This commit is contained in:
@@ -296,9 +296,9 @@ define( ['utils/localization'], function(_l) {
|
||||
|
||||
function setWindowTitle(title){
|
||||
if (title) {
|
||||
window.document.title = "Galaxy " + (window.Galaxy.config.brand ? " / " + window.Galaxy.config.brand : '') + " | " + _l(title);
|
||||
window.document.title = "Galaxy " + (window.Galaxy.config.brand ? " | " + window.Galaxy.config.brand : '') + " | " + _l(title);
|
||||
} else {
|
||||
window.document.title = "Galaxy " + (window.Galaxy.config.brand ? " / " + window.Galaxy.config.brand : '');
|
||||
window.document.title = "Galaxy " + (window.Galaxy.config.brand ? " | " + window.Galaxy.config.brand : '');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +1,2 @@
|
||||
define(["utils/localization"],function(a){function b(a){return'<iframe src="'+a+'" frameborder="0" style="width: 100%; height: 100%;"/>'}function c(a,b){for(var d in a){var e=a[d];if(_.isObject(e)){var f=b(e);f&&(a[d]=f),c(e,b)}}}function d(a){var b,c,d,e;return c=/(\b(https?|ftp):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gim,b=a.replace(c,'<a href="$1" target="_blank">$1</a>'),d=/(^|[^\/])(www\.[\S]+(\b|$))/gim,b=b.replace(d,'$1<a href="http://$2" target="_blank">$2</a>'),e=/(([a-zA-Z0-9\-\_\.])+@[a-zA-Z\_]+?(\.[a-zA-Z]{2,6})+)/gim,b=b.replace(e,'<a href="mailto:$1">$1</a>')}function e(a){return JSON.parse(JSON.stringify(a)||null)}function f(a){return/^[\],:{}\s]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))}function g(a){return $("<div/>").text(a).html()}function h(a){if(a instanceof Array||(a=[a]),0===a.length)return!0;for(var b in a)if(["__null__","__undefined__",null,void 0].indexOf(a[b])>-1)return!0;return!1}function i(a){if($.isArray(a)){var a=a.toString().replace(/,/g,", "),b=a.lastIndexOf(", ");return-1!=b&&(a=a.substr(0,b)+" or "+a.substr(b+2)),a}return""}function j(a){top.__utils__get__=top.__utils__get__||{};var b=JSON.stringify(a);a.cache&&top.__utils__get__[b]?(a.success&&a.success(top.__utils__get__[b]),window.console.debug("utils.js::get() - Fetching from cache ["+a.url+"].")):k({url:a.url,data:a.data,success:function(c){top.__utils__get__[b]=c,a.success&&a.success(c)},error:function(b,c){a.error&&a.error(b,c)}})}function k(a){var b={contentType:"application/json",type:a.type||"GET",data:a.data||{},url:a.url};"GET"==b.type||"DELETE"==b.type?($.isEmptyObject(b.data)||(b.url+=-1==b.url.indexOf("?")?"?":"&",b.url+=$.param(b.data,!0)),b.data=null):(b.dataType="json",b.url=b.url,b.data=JSON.stringify(b.data)),$.ajax(b).done(function(b){if("string"==typeof b)try{b=b.replace("Infinity,",'"Infinity",'),b=jQuery.parseJSON(b)}catch(c){console.debug(c)}a.success&&a.success(b)}).fail(function(b){var c=null;try{c=jQuery.parseJSON(b.responseText)}catch(d){c=b.responseText}a.error&&a.error(c,b.status)}).always(function(){a.complete&&a.complete()})}function l(a,b){var c=$('<div class="'+a+'"></div>');c.appendTo(":eq(0)");var d=c.css(b);return c.remove(),d}function m(a){$('link[href^="'+a+'"]').length||$('<link href="'+Galaxy.root+a+'" rel="stylesheet">').appendTo("head")}function n(a,b){return a?_.defaults(a,b):b}function o(a,b){for(var c=1,d=0;b>d;d++)c*=10;return Math.round(a*c)/c}function p(a,b,c){c=void 0!==c?c:1;var d="";if(a>=y)a/=y,d="TB";else if(a>=x)a/=x,d="GB";else if(a>=w)a/=w,d="MB";else if(a>=v)a/=v,d="KB";else{if(!(a>0))return b?"0 b":"<strong>-</strong>";d="b"}var e="b"==d?a:o(a,c);return b?e+" "+d:"<strong>"+e+"</strong> "+d}function q(){return top.__utils__uid__=top.__utils__uid__||0,"uid-"+top.__utils__uid__++}function r(){var a=new Date,b=(a.getHours()<10?"0":"")+a.getHours(),c=(a.getMinutes()<10?"0":"")+a.getMinutes();return datetime=a.getDate()+"/"+(a.getMonth()+1)+"/"+a.getFullYear()+", "+b+":"+c}function s(a){a.script&&""!==a.script&&$("<script/>",{type:"text/javascript"}).text(a.script).appendTo("head"),a.styles&&""!==a.styles&&$("<style/>",{type:"text/css"}).text(a.styles).appendTo("head")}function t(a){return decodeURIComponent(window.location.search.replace(new RegExp("^(?:.*[&\\?]"+encodeURIComponent(a).replace(/[\.\+\*]/g,"\\$&")+"(?:\\=([^&]*))?)?.*$","i"),"$1"))}function u(b){window.document.title=b?"Galaxy "+(window.Galaxy.config.brand?" / "+window.Galaxy.config.brand:"")+" | "+a(b):"Galaxy "+(window.Galaxy.config.brand?" / "+window.Galaxy.config.brand:"")}var v=1024,w=v*v,x=w*v,y=x*v;return{cssLoadFile:m,cssGetAttribute:l,get:j,merge:n,iframe:b,bytesToString:p,uid:q,time:r,request:k,sanitize:g,textify:i,isEmpty:h,deepeach:c,isJSON:f,clone:e,linkify:d,appendScriptStyle:s,getQueryString:t,setWindowTitle:u}});
|
||||
define(["utils/localization"],function(a){function b(a){return'<iframe src="'+a+'" frameborder="0" style="width: 100%; height: 100%;"/>'}function c(a,b){for(var d in a){var e=a[d];if(_.isObject(e)){var f=b(e);f&&(a[d]=f),c(e,b)}}}function d(a){var b,c,d,e;return c=/(\b(https?|ftp):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gim,b=a.replace(c,'<a href="$1" target="_blank">$1</a>'),d=/(^|[^\/])(www\.[\S]+(\b|$))/gim,b=b.replace(d,'$1<a href="http://$2" target="_blank">$2</a>'),e=/(([a-zA-Z0-9\-\_\.])+@[a-zA-Z\_]+?(\.[a-zA-Z]{2,6})+)/gim,b=b.replace(e,'<a href="mailto:$1">$1</a>')}function e(a){return JSON.parse(JSON.stringify(a)||null)}function f(a){return/^[\],:{}\s]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))}function g(a){return $("<div/>").text(a).html()}function h(a){if(a instanceof Array||(a=[a]),0===a.length)return!0;for(var b in a)if(["__null__","__undefined__",null,void 0].indexOf(a[b])>-1)return!0;return!1}function i(a){if($.isArray(a)){var a=a.toString().replace(/,/g,", "),b=a.lastIndexOf(", ");return-1!=b&&(a=a.substr(0,b)+" or "+a.substr(b+2)),a}return""}function j(a){top.__utils__get__=top.__utils__get__||{};var b=JSON.stringify(a);a.cache&&top.__utils__get__[b]?(a.success&&a.success(top.__utils__get__[b]),window.console.debug("utils.js::get() - Fetching from cache ["+a.url+"].")):k({url:a.url,data:a.data,success:function(c){top.__utils__get__[b]=c,a.success&&a.success(c)},error:function(b,c){a.error&&a.error(b,c)}})}function k(a){var b={contentType:"application/json",type:a.type||"GET",data:a.data||{},url:a.url};"GET"==b.type||"DELETE"==b.type?($.isEmptyObject(b.data)||(b.url+=-1==b.url.indexOf("?")?"?":"&",b.url+=$.param(b.data,!0)),b.data=null):(b.dataType="json",b.url=b.url,b.data=JSON.stringify(b.data)),$.ajax(b).done(function(b){if("string"==typeof b)try{b=b.replace("Infinity,",'"Infinity",'),b=jQuery.parseJSON(b)}catch(c){console.debug(c)}a.success&&a.success(b)}).fail(function(b){var c=null;try{c=jQuery.parseJSON(b.responseText)}catch(d){c=b.responseText}a.error&&a.error(c,b.status)}).always(function(){a.complete&&a.complete()})}function l(a,b){var c=$('<div class="'+a+'"></div>');c.appendTo(":eq(0)");var d=c.css(b);return c.remove(),d}function m(a){$('link[href^="'+a+'"]').length||$('<link href="'+Galaxy.root+a+'" rel="stylesheet">').appendTo("head")}function n(a,b){return a?_.defaults(a,b):b}function o(a,b){for(var c=1,d=0;b>d;d++)c*=10;return Math.round(a*c)/c}function p(a,b,c){c=void 0!==c?c:1;var d="";if(a>=y)a/=y,d="TB";else if(a>=x)a/=x,d="GB";else if(a>=w)a/=w,d="MB";else if(a>=v)a/=v,d="KB";else{if(!(a>0))return b?"0 b":"<strong>-</strong>";d="b"}var e="b"==d?a:o(a,c);return b?e+" "+d:"<strong>"+e+"</strong> "+d}function q(){return top.__utils__uid__=top.__utils__uid__||0,"uid-"+top.__utils__uid__++}function r(){var a=new Date,b=(a.getHours()<10?"0":"")+a.getHours(),c=(a.getMinutes()<10?"0":"")+a.getMinutes();return datetime=a.getDate()+"/"+(a.getMonth()+1)+"/"+a.getFullYear()+", "+b+":"+c}function s(a){a.script&&""!==a.script&&$("<script/>",{type:"text/javascript"}).text(a.script).appendTo("head"),a.styles&&""!==a.styles&&$("<style/>",{type:"text/css"}).text(a.styles).appendTo("head")}function t(a){return decodeURIComponent(window.location.search.replace(new RegExp("^(?:.*[&\\?]"+encodeURIComponent(a).replace(/[\.\+\*]/g,"\\$&")+"(?:\\=([^&]*))?)?.*$","i"),"$1"))}function u(b){window.document.title=b?"Galaxy "+(window.Galaxy.config.brand?" | "+window.Galaxy.config.brand:"")+" | "+a(b):"Galaxy "+(window.Galaxy.config.brand?" | "+window.Galaxy.config.brand:"")}var v=1024,w=v*v,x=w*v,y=x*v;return{cssLoadFile:m,cssGetAttribute:l,get:j,merge:n,iframe:b,bytesToString:p,uid:q,time:r,request:k,sanitize:g,textify:i,isEmpty:h,deepeach:c,isJSON:f,clone:e,linkify:d,appendScriptStyle:s,getQueryString:t,setWindowTitle:u}});
|
||||
//# sourceMappingURL=../../maps/utils/utils.js.map
|
||||
Reference in New Issue
Block a user