X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fmain.js;h=d17d923e42d97eb591107432131a2c79550ee861;hb=dbc328368187bca4c0365ab56db57437dfda9f38;hp=896c611d5c162d9f552115cda894fa7ae4234bcc;hpb=e7834e60f872f91954266a7bcc2b5adda3df8d00;p=friendica.git diff --git a/include/main.js b/include/main.js index 896c611d5c..d17d923e42 100644 --- a/include/main.js +++ b/include/main.js @@ -53,8 +53,11 @@ //console.log(id); }); + /* setup field_richtext */ + setupFieldRichtext(); + /* load tinyMCE if needed and setup field_richtext */ - if(typeof tinyMCE == "undefined") { + /*if(typeof tinyMCE == "undefined") { window.tinyMCEPreInit = { suffix:"", base: baseurl+"/library/tinymce/jscripts/tiny_mce/", @@ -62,8 +65,8 @@ }; $.getScript(baseurl +"/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js", setupFieldRichtext); } else { - setupFieldRichtext(); - } + }*/ + /* nav update event */ @@ -97,6 +100,14 @@ $('#pause').html(''); } } + else { + // any key to resume + if(stopped == true) { + stopped = false; + $('#pause').html(''); + } + } + }); }); @@ -139,7 +150,7 @@ in_progress = true; var udargs = ((netargs.length) ? '/' + netargs : ''); - var update_url = 'update_' + src + udargs + '?p=' + profile_uid + '&page=' + profile_page + '&msie=' + ((msie) ? 1 : 0); + var update_url = 'update_' + src + udargs + '&p=' + profile_uid + '&page=' + profile_page + '&msie=' + ((msie) ? 1 : 0); $.get(update_url,function(data) { in_progress = false; @@ -364,7 +375,6 @@ function setupFieldRichtext(){ }); } - /** * sprintf in javascript * "{0} and {1}".format('zero','uno'); @@ -377,3 +387,10 @@ String.prototype.format = function() { } return formatted; }; +// Array Remove +Array.prototype.remove = function(item) { + to=undefined; from=this.indexOf(item); + var rest = this.slice((to || from) + 1 || this.length); + this.length = from < 0 ? this.length + from : from; + return this.push.apply(this, rest); +};