/edit_action
edit action

Sourcecode in SkinMgr/actions.js:
1:   function edit_action() {
2:      if (req.data.cancel)
3:         res.redirect(this.href(req.data.action) + "?skinset=" + req.data.skinset + "#" + req.data.key);
4:      else if (req.data.save || req.data.close) {
5:         try {
6:            res.message = this.saveSkin(req.data, session.user);
7:            if (req.data.close)
8:               res.redirect(this.href(req.data.action) + "?skinset=" + req.data.skinset + "#" + req.data.key);
9:            res.redirect(this.href(req.action) + "?key=" + req.data.key + "&skinset=" + req.data.skinset + "&action=" + req.data.action);
10:        } catch (err) {
11:           res.message = err.toString();
12:        }
13:     }
14:  
15:     if (!req.data.key)
16:        res.redirect(this.href());
17:     var sp = new Object();
18:     var splitKey = req.data.key.split(".");
19:     var desc = this.getSkinDescription("skin", req.data.key);
20:     sp.title = desc[0];
21:     sp.text = desc[1] ? desc[1] : " (" + getMessage("skin.customSkin") + ")";
22:     sp.skin = this.getSkinSource(splitKey[0], splitKey[1]);
23:     sp.action = req.data.action;
24:  
25:     res.data.action = this.href(req.action);
26:     res.data.title = splitKey[0] + "/" + splitKey[1] + ".skin " + getMessage("generic.of") + " " + this._parent.title;
27:     res.data.body = this.renderSkinAsString("edit", sp);
28:     this.renderSkin("page");
29:     return;
30:  }