Changeset 801
- Timestamp:
- 11/21/2007 11:41:57 AM (3 years ago)
- Location:
- trunk/3rdparty/plugins/wikkaedit
- Files:
-
- 1 added
- 3 modified
-
wikkaedit.js (modified) (4 diffs)
-
wikkaedit_actions.js (added)
-
wikkaedit_data.js (modified) (1 diff)
-
wikkaedit_search.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/3rdparty/plugins/wikkaedit/wikkaedit.js
r797 r801 39 39 if (this.we_actionsMenuEnabled) 40 40 this.initActions(); 41 41 42 42 //var we_ta_container = this.we_ta; // without textarea_container (old method) 43 43 var we_ta_container = document.getElementById("textarea_container"); // with textarea_container 44 44 45 45 // add a toolbar before textarea 46 46 this.we_toolbar = document.createElement("div"); … … 175 175 // ========== actions ========== 176 176 if (this.we_actionsMenuEnabled) { 177 html += "<div style='border-top:1px solid #CCCCCC; margin:1px 0 4px 0'></div>";178 html += "<span style='vertical-align:middle;margin-left:5px'>Actions :</span>";177 html += "<div class='toolhorizsep'></div>"; 178 html += "<span class='actiontitle'>Actions :</span>"; 179 179 for(i in this.we_categs) { 180 180 if (this.we_categs[i].title != null) // hidden actions don't have a title … … 264 264 // === use actions data to insert the action === 265 265 // add the action and default parameters to the textarea 266 var actionName = this.we_actions[actionRef]. name;266 var actionName = this.we_actions[actionRef].we_name; 267 267 var OP; 268 268 actionAndParams += "{{" + actionName; 269 for(var i in this.we_actions[actionRef]. params) {270 OP = this.we_actions[actionRef]. params[i];269 for(var i in this.we_actions[actionRef].we_params) { 270 OP = this.we_actions[actionRef].we_params[i]; 271 271 if ((OP.nodefault == null) || (OP.nodefault == false)) // null or hide => add param 272 272 actionAndParams += " " + OP.name + "=\"" + OP.value + "\""; … … 357 357 } else { 358 358 for(i in this.we_actions) { 359 if (this.we_actions[i]. categ == newSubmenu) {360 html += "<div class=\"smbutton\" onclick=\"varWikkaEdit.toolbarActionClick('" + i + "');\"" + (this.we_actions[i]. summary == null ? "" : " title=\"" + this.we_actions[i].summary + "\"") + ">";361 html += "<img class=\"smimage\" src=\"3rdparty/plugins/wikkaedit/images/ " + this.we_actions[i].name + ".gif\" alt=\"" + this.we_actions[i].name + "\"" + ie6_hover + " />";362 html += this.we_actions[i]. title;359 if (this.we_actions[i].we_categ == newSubmenu) { 360 html += "<div class=\"smbutton\" onclick=\"varWikkaEdit.toolbarActionClick('" + i + "');\"" + (this.we_actions[i].we_summary == null ? "" : " title=\"" + this.we_actions[i].we_summary + "\"") + ">"; 361 html += "<img class=\"smimage\" src=\"3rdparty/plugins/wikkaedit/images/actions/" + this.we_actions[i].we_name + ".gif\" alt=\"" + this.we_actions[i].we_name + "\"" + ie6_hover + " />"; 362 html += this.we_actions[i].we_title; 363 363 html += "</div>"; 364 364 } -
trunk/3rdparty/plugins/wikkaedit/wikkaedit_data.js
r797 r801 148 148 WikkaAction.prototype.addParam = function(name, value, nodefault, description) { 149 149 nodefault = (nodefault == true); 150 this.we_params[ this.nameToRef(name)] = {name:name, value:value, nodefault:nodefault, description:description};150 this.we_params[varWikkaEdit.nameToRef(name)] = {name:name, value:value, nodefault:nodefault, description:description}; 151 151 } 152 152 -
trunk/3rdparty/plugins/wikkaedit/wikkaedit_search.js
r797 r801 5 5 // supported browsers : MZ1.4+, MSIE5+, Opera 8+, khtml/webkit // 6 6 // // 7 // Copyright (C) 2007 Olivier Borowski (coin at tuxfamily dot org)//7 // (C) 2007 Olivier Borowski (olivier.borowski@wikkawiki.org) // 8 8 // Homepage : http://wikkawiki.org/WikkaEdit // 9 9 // //