Permalink
Browse files

Refine the ui.js, removed some unused functions and refine a function…

… name
  • Loading branch information...
1 parent dc51496 commit a08673744e5f9c5449139bd7739f9c553523daf0 @JohnnySong JohnnySong committed May 4, 2011
Showing with 4 additions and 27 deletions.
  1. +3 −3 designer/src/main/webapp/js/Plugins/uuidRepository.js
  2. +1 −24 designer/src/main/webapp/js/ui.js
View
6 designer/src/main/webapp/js/Plugins/uuidRepository.js
@@ -1,6 +1,6 @@
/**
- * Copyright (c) 2010
- * Intalio, Inc
+ * Copyright (c) 2010-2011
+ * Intalio, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -174,7 +174,7 @@ WAPAMA.Plugins.UUIDRepositorySave = WAPAMA.Plugins.AbstractPlugin.extend({
// if the save function is invoked by "Save_n_Close" or "Window Close"
if (onClose) {
// close the window after saving succeed
- WAPAMA.UI.closeInstanceWidow(WAPAMA.UUID + "_win");
+ WAPAMA.UI.closeInstanceWindow(WAPAMA.UUID + "_win");
}
}).bind(this),
onFailure: (function(transport) {
View
25 designer/src/main/webapp/js/ui.js
@@ -8,29 +8,6 @@
*/
if(!WAPAMA) var WAPAMA = {};
WAPAMA.UI = {
- // Ext.form.TextField
- createTextField : function(config) {
- var field = new Ext.form.TextField(config);
- return field;
- },
-
- // Ext.form.ComboBox
- createComboBox : function(config) {
- var field = new Ext.form.ComboBox(config);
- return field;
- },
-
- // Ext.form.Checkbox
- createCheckbox : function(config) {
- var field = new Ext.form.Checkbox(config);
- return field;
- },
-
- // Ext.form.TextArea
- createTextArea : function(config) {
- var field = new Ext.form.TextArea(config);
- return field;
- },
/**
* Create a text for shape name
@@ -140,7 +117,7 @@ WAPAMA.UI = {
*
* @param {window} instanceWindowId
*/
- closeInstanceWidow : function(instanceWindowId) {
+ closeInstanceWindow : function(instanceWindowId) {
var instanceWindow = top.Ext.getCmp(instanceWindowId);
instanceWindow.initialConfig.tools[5].handler.call(null, instanceWindow.tools.close, instanceWindow);
},

0 comments on commit a086737

Please sign in to comment.