kopia lustrzana https://github.com/c9/core
fix split configuration menu items
rodzic
4e2146651d
commit
cdde0b56c2
|
@ -256,12 +256,14 @@ define(function(require, exports, module) {
|
||||||
|
|
||||||
menus.addItemByPath("Window/Tabs/~", new apf.label({
|
menus.addItemByPath("Window/Tabs/~", new apf.label({
|
||||||
class: "splits",
|
class: "splits",
|
||||||
caption: "<span class='nosplit'></span>"
|
caption: [
|
||||||
+ "<span class='twovsplit'></span>"
|
["span", { class: "nosplit" }],
|
||||||
+ "<span class='twohsplit'></span>"
|
["span", { class: "twovsplit" }],
|
||||||
+ "<span class='foursplit'></span>"
|
["span", { class: "twohsplit" }],
|
||||||
+ "<span class='threeleft'></span>"
|
["span", { class: "foursplit" }],
|
||||||
+ "<span class='threeright'></span>",
|
["span", { class: "threeleft" }],
|
||||||
|
["span", { class: "threeright" }],
|
||||||
|
],
|
||||||
onclick: function(e) {
|
onclick: function(e) {
|
||||||
var span = e.htmlEvent.target;
|
var span = e.htmlEvent.target;
|
||||||
if (!span || span.tagName != "SPAN") return;
|
if (!span || span.tagName != "SPAN") return;
|
||||||
|
|
|
@ -13796,7 +13796,12 @@ apf.label = function(struct, tagName) {
|
||||||
*/
|
*/
|
||||||
this.$supportedProperties.push("caption", "for", "textalign");
|
this.$supportedProperties.push("caption", "for", "textalign");
|
||||||
this.$propHandlers["caption"] = function(value) {
|
this.$propHandlers["caption"] = function(value) {
|
||||||
this.$caption.textContent = value;
|
if (typeof value == "string")
|
||||||
|
this.$caption.textContent = value;
|
||||||
|
else if (Array.isArray(value)) {
|
||||||
|
this.$caption.textContent = "";
|
||||||
|
apf.buildDom(value, this.$caption);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
this.$propHandlers["for"] = function(value) {
|
this.$propHandlers["for"] = function(value) {
|
||||||
forElement = typeof value == "string" ? self[value] : value;
|
forElement = typeof value == "string" ? self[value] : value;
|
||||||
|
|
Ładowanie…
Reference in New Issue