aboutsummaryrefslogtreecommitdiffstats
path: root/include/main.js
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-07-19 17:25:13 -0700
committerFriendika <info@friendika.com>2011-07-19 17:25:13 -0700
commitbf1739aef2e05c41254ac12ccb0ae75fd9088faf (patch)
treebf70b3d711c07a4aa47ee4715c81ded884a6f94b /include/main.js
parent6ce5bcee9f73cd526633cc30228c13972ee9ddb0 (diff)
parent1d35d1e5a1c807ea391d7958657b13a6bb471a0b (diff)
downloadvolse-hubzilla-bf1739aef2e05c41254ac12ccb0ae75fd9088faf.tar.gz
volse-hubzilla-bf1739aef2e05c41254ac12ccb0ae75fd9088faf.tar.bz2
volse-hubzilla-bf1739aef2e05c41254ac12ccb0ae75fd9088faf.zip
Merge branch 'pull'
Diffstat (limited to 'include/main.js')
-rw-r--r--include/main.js17
1 files changed, 13 insertions, 4 deletions
diff --git a/include/main.js b/include/main.js
index 896c611d5..040e9695e 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 */
@@ -364,7 +367,6 @@ function setupFieldRichtext(){
});
}
-
/**
* sprintf in javascript
* "{0} and {1}".format('zero','uno');
@@ -377,3 +379,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);
+};