Skip to content
Snippets Groups Projects
Commit 3f7f6434 authored by Jörn Friedrich Dreyer's avatar Jörn Friedrich Dreyer
Browse files

Merge branch 'master' into fix_3728_with_file_exists_dialog

parents 86c4c83b 2e79aab0
No related branches found
No related tags found
No related merge requests found
......@@ -906,7 +906,7 @@ OC.set=function(name, value) {
* @param {type} start
* @param {type} end
*/
$.fn.selectRange = function(start, end) {
jQuery.fn.selectRange = function(start, end) {
return this.each(function() {
if (this.setSelectionRange) {
this.focus();
......@@ -921,6 +921,15 @@ $.fn.selectRange = function(start, end) {
});
};
/**
* check if an element exists.
* allows you to write if ($('#myid').exists()) to increase readability
* @link http://stackoverflow.com/questions/31044/is-there-an-exists-function-for-jquery
*/
jQuery.fn.exists = function(){
return this.length > 0;
}
/**
* Calls the server periodically every 15 mins to ensure that session doesnt
* time out
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment