diff --git a/core/js/js.js b/core/js/js.js index 1bd650bb6b87e92e928fb597eb050dddad07d3b4..21466a809b2f9e45b428edc01b17517946a41bb7 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -154,6 +154,12 @@ OC={ $('head').append(style); } }, + basename: function(path) { + return path.replace(/\\/g,'/').replace( /.*\//, '' ); + }, + dirname: function(path) { + return path.replace(/\\/g,'/').replace(/\/[^\/]*$/, '');; + } /** * do a search query and display the results * @param query the search query