[Rt-commit] rt branch, lcore, updated. 2ec439cec7d05b500089ae43b99d8e94752a8899
jesse
jesse at bestpractical.com
Fri Aug 7 07:35:30 EDT 2009
The branch, lcore has been updated
via 2ec439cec7d05b500089ae43b99d8e94752a8899 (commit)
from 8365bd4ac32548d52ad75f1b9a321b66516843dc (commit)
Summary of changes:
lib/RT.pm | 4 ++--
share/web/static/js/class.js | 15 ---------------
share/web/static/js/list.js | 15 +++++++++++++++
3 files changed, 17 insertions(+), 17 deletions(-)
delete mode 100644 share/web/static/js/class.js
- Log -----------------------------------------------------------------
commit 2ec439cec7d05b500089ae43b99d8e94752a8899
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Fri Aug 7 12:33:51 2009 +0100
compress tkirby's list and class .js classes together. update rt.pm accordingly
diff --git a/lib/RT.pm b/lib/RT.pm
index 49d77cc..7e3ab84 100644
--- a/lib/RT.pm
+++ b/lib/RT.pm
@@ -319,9 +319,10 @@ nomrally, we need to do it early in BEGIN block
sub init_jifty {
require Jifty;
Jifty->new;
+}
Jifty->web->add_javascript(
- qw( titlebox-state.js util.js ahah.js fckeditor.js list.js class.js
+ qw( titlebox-state.js util.js ahah.js fckeditor.js list.js
combobox.js cascaded.js rulebuilder.js jquery.createdomnodes.js )
);
@@ -334,7 +335,6 @@ sub init_jifty {
);
},
);
-}
=head2 local_path
diff --git a/share/web/static/js/class.js b/share/web/static/js/class.js
deleted file mode 100644
index fe68b15..0000000
--- a/share/web/static/js/class.js
+++ /dev/null
@@ -1,15 +0,0 @@
-/* by TKirby, released under GPL */
-
- function _ClassSetup(Object) {
- this.prototype = Object;
- return this;
- }
-
- function TkirbyClass(name) {
- var _newclass_;
- eval("window."+name+" = new Function('this."+name+".apply(this,arguments);');");
- eval("window."+name+".define = _ClassSetup;");
- eval("_newclass_ = window."+name+";");
- return _newclass_;
- }
-
diff --git a/share/web/static/js/list.js b/share/web/static/js/list.js
index 32c749c..e4f31dd 100644
--- a/share/web/static/js/list.js
+++ b/share/web/static/js/list.js
@@ -1,4 +1,19 @@
/* by TKirby, released under GPL */
+
+ function _ClassSetup(Object) {
+ this.prototype = Object;
+ return this;
+ }
+
+ function TkirbyClass(name) {
+ var _newclass_;
+ eval("window."+name+" = new Function('this."+name+".apply(this,arguments);');");
+ eval("window."+name+".define = _ClassSetup;");
+ eval("_newclass_ = window."+name+";");
+ return _newclass_;
+ }
+
+
/* Define the "list" Class */
TkirbyClass("list").define({
name : null,
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list