1 Ext.namespace(
'wcmf',
'wcmf.grid',
'wcmf.tree');
3 Ext.MessageBox.buttonText.yes =
Message.
get(
"Yes");
4 Ext.MessageBox.buttonText.no =
Message.
get(
"No");
7 Ext.isIE9 = Ext.isIE && (/msie 9/).test(navigator.userAgent.toLowerCase());
9 if (typeof Range.prototype.createContextualFragment ==
"undefined") {
10 Range.prototype.createContextualFragment =
function (html) {
11 var doc = window.document;
12 var container = doc.createElement(
"div");
13 container.innerHTML = html;
14 var frag = doc.createDocumentFragment(), n;
15 while ((n = container.firstChild)) {
21 Ext.override(Ext.tree.TreeEventModel, {
22 getNode: function (e) {
24 if (t = e.getTarget(
'.x-tree-node-el', 10)) {
26 var
id = e.getTarget(
'.x-tree-node-el', 10).getAttribute(
"ext:tree-node-id")
28 return this.tree.getNodeById(
id);
44 Action =
function() {};
53 Action.perform =
function(action, customParams, callback, scope) {
55 var callParams = {controller:
'<?php echo $controller; ?>', context:
'<?php echo $context; ?>', usr_action:action, sid:
'<?php echo session_id() ?>'};
56 for (var i in customParams)
57 callParams[i] = customParams[i];
60 var proxy =
new Ext.data.HttpProxy({
61 url:
'<?php echo $APP_URL; ?>'
63 proxy.load(callParams, null, callback, scope);
get($message, $parameters=null, $domain='', $lang='')
Use the Message class to output messages. You need not instantiate a Message object because the metho...