Permalink
Browse files

removed unused js function; moved divPanel() function into cyberdojo-…

…helpers.js
  • Loading branch information...
1 parent 22d7d73 commit 72e765bdb1fda6f6d05d5adffbb601a900158df7 @JonJagger committed Sep 29, 2012
Showing with 6 additions and 16 deletions.
  1. +0 −16 app/assets/javascripts/cyberdojo-dialog.js
  2. +6 −0 app/assets/javascripts/cyberdojo-helpers.js
@@ -2,16 +2,6 @@
var cyberDojo = (function($cd, $j) {
- //Does anything still use this?
- $cd.popup = function(name) {
- var grid = $j('<div>');
- grid.load('/dojo/' + name, { }, function() {
- $cd.dialogPopup(grid.html(), (name === 'why' ? 1100 : 850), name);
- });
- };
-
- //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
$cd.dialog = function(html,width,name) {
var div = $j('<div>')
.html('<div style="font-size: 1.2em;">' + html + '</div>')
@@ -29,12 +19,6 @@ var cyberDojo = (function($cd, $j) {
div.dialog('open');
};
- //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- $cd.divPanel = function(content) {
- return '<div class="panel">' + content + '</div>';
- };
-
return $cd;
})(cyberDojo || {}, $);
@@ -58,6 +58,12 @@ var cyberDojo = (function($cd, $j) {
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ $cd.divPanel = function(content) {
+ return '<div class="panel">' + content + '</div>';
+ };
+
+ //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
$cd.alert = function(avatar_name, message, title) {
var ext = avatar_name == "cyber-dojo" ? "png" : "jpg";
var imageSize = 200;

0 comments on commit 72e765b

Please sign in to comment.