]> source.dussan.org Git - archiva.git/commitdiff
cleanup small js files.
authorOlivier Lamy <olamy@apache.org>
Mon, 26 Mar 2012 22:50:15 +0000 (22:50 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 26 Mar 2012 22:50:15 +0000 (22:50 +0000)
defined a js files as a module for require js.

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1305650 13f79535-47bb-0310-9956-ffa450edef68

17 files changed:
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/index.html
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main-tmpl.js
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/network-proxies.js
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/proxy-connectors.js
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repository-groups.js
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/operation.js [deleted file]
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/permission.js [deleted file]
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/redback-tmpl.js
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/redback.js
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/register.js [deleted file]
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/resource.js [deleted file]
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/roles.js
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/user.js
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/users.js

index 9957610c6c25563f14180b0dd9250bda51e3de94..bc921130ebe8ebe337f6308764e16672d2536ebd 100644 (file)
                 "jquery_json": "jquery.json-2.3.min",
                 "knockout.simpleGrid": "knockout.simpleGrid",
                 "knockout": "knockout-2.0.0.debug",
-                "knockout.sortable": "knockout-sortable"
+                "knockout.sortable": "knockout-sortable",
+                "redback": "redback/redback",
+                "general-admin":"archiva/general-admin",
+                "redback-templates": "redback/redback-tmpl",
+                "main-templates": "archiva/main-tmpl",
+                "repositories": "archiva/repositories",
+                "network-proxies": "archiva/network-proxies",
+                "proxy-connectors": "archiva/proxy-connectors",
+                "repository-groups": "archiva/repository-groups",
+                "roles": "redback/roles",
+                "user": "redback/user",
+                "users": "redback/users"
             }
             // file upload dependencies
             //.script("jquery.iframe-transport-1.4.js").wait()
@@ -72,7 +83,7 @@
             //.script("jquery.fileupload-ip-1.0.6.js").wait()
             //.script("jquery.fileupload-ui-6.6.3.js" ).wait()
         });
-        require(['domReady','jquery','i18n','startup'], function (domReady) {
+        require(['order!domReady','order!jquery','order!i18n','order!startup'], function (domReady) {
           domReady.withResources(function () {
               loadi18n();
               $.ajax(
                       window.archivaJavascriptLog=data.javascriptLog;
                       window.archivaRuntimeInfo=data;
 
-                      require.config({
-                          baseUrl: "js/",
-                          urlArgs: "_="+new Date().getTime(),
-                          "paths": {
-                              "redback": buildLoadJsUrl("redback/redback.js")
-
-                          }
-                      });
-
                       // CacheBust is for dev purpose use false in prod env !
                       var options = {
                           AlwaysPreserveOrder:true,
                       };
                       $LAB.setGlobalDefaults(options);
                       $LAB
-                         .script(buildLoadJsUrl("archiva/main-tmpl.js")).wait()
-                         .script(buildLoadJsUrl("archiva/general-admin.js"))
-                         .script(buildLoadJsUrl("archiva/repositories.js")).wait()
-                         .script(buildLoadJsUrl("archiva/network-proxies.js")).wait()
-                         .script(buildLoadJsUrl("archiva/proxy-connectors.js")).wait()
-                         .script(buildLoadJsUrl("redback/operation.js")).wait()
-                         .script(buildLoadJsUrl("archiva/repository-groups.js")).wait()
-                         .script(buildLoadJsUrl("redback/redback-tmpl.js")).wait()
-                         .script(buildLoadJsUrl("redback/user.js")).wait()
-                         .script(buildLoadJsUrl("redback/users.js")).wait()
-                         .script(buildLoadJsUrl("redback/register.js")).wait()
-                         .script(buildLoadJsUrl("redback/permission.js")).wait()
-                         .script(buildLoadJsUrl("redback/resource.js")).wait()
-                         .script(buildLoadJsUrl("redback/roles.js")).wait()
                          .script(buildLoadJsUrl("archiva/main.js"));
                   }
                 })
index 649a00cfa7105b07d3b7dbcbbbcdf2af1b479201..0d61fc5db7d2ce676f7399affc3a65ed4483542b 100644 (file)
@@ -16,7 +16,8 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-$(function() {
+define("general-admin",["jquery","i18n","order!utils","order!jquery_tmpl","order!knockout","jquery_validate","bootstrap"]
+    , function() {
 
   //-------------------------
   // legacy path part
@@ -822,4 +823,5 @@ $(function() {
       }
     });
   }
+
 });
\ No newline at end of file
index ed58c9d1b0fd5c2deaaf6bc031a603070f675aa5..fdc5d5325a655a9ddff54fde4343d7324784f50d 100644 (file)
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-require(["text!js/archiva/templates/menu.html"+appendTemplateUrl(),
+define("main-templates",["text!js/archiva/templates/menu.html"+appendTemplateUrl(),
           "text!js/archiva/templates/message.html"+appendTemplateUrl(),
           "text!js/archiva/templates/modal.html"+appendTemplateUrl(),
           "text!js/archiva/templates/grids-generics.html"+appendTemplateUrl(),
@@ -25,7 +25,8 @@ require(["text!js/archiva/templates/menu.html"+appendTemplateUrl(),
           "text!js/archiva/templates/proxy-connectors.html"+appendTemplateUrl(),
           "text!js/archiva/templates/repository-groups.html"+appendTemplateUrl(),
           "text!js/archiva/templates/search.html"+appendTemplateUrl(),
-          "text!js/archiva/templates/general-admin.html"+appendTemplateUrl()],
+          "text!js/archiva/templates/general-admin.html"+appendTemplateUrl(),
+          "jquery_tmpl","utils"],
   function(menu,message,modal,grids_generics,repositories,network_proxies,proxies_connectors,
            repository_groups,search,general_admin) {
 
index 52796ee1853ad6e85eba11c4fa2827b678604f45..83a97777b96fa140757cc466acc298e4c7e785ef 100644 (file)
  * under the License.
  */
 require( ["order!jquery","jquery_ui","jquery_cookie","bootstrap","order!archiva/search",
-         "jquery_validate","jquery_json","order!knockout","order!redback/redback"],
+         "jquery_validate","jquery_json","order!knockout","order!redback-templates","order!main-templates","order!roles",
+          "order!redback","general-admin","repositories","network-proxies","proxy-connectors","repository-groups"],
 function() {
 
 
+
   // define a container object with various datas
   window.archivaModel = {};
 
index eea73dddbb01e9886545c29feae1a0c71523ba32..4b59fc445aab9a4bf99ae2742d8bc16ea6e1e2f7 100644 (file)
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-$(function() {
+define("network-proxies",["jquery","i18n","jquery_tmpl","bootstrap","jquery_validate"], function() {
 
 
   NetworkProxy=function(id,protocol,host,port,username,password,useNtlm){
index 7961bac463ad6b7fc66cbad8ed5f0e4e1de54964..670b9aab79f25236362c597bfd30cb96c01687f0 100644 (file)
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-$(function() {
+define("proxy-connectors",["jquery","i18n","jquery_tmpl","bootstrap","jquery_validate"], function() {
 
   ProxyConnector=function(sourceRepoId,targetRepoId,proxyId,blackListPatterns,whiteListPatterns,policiesEntries,propertiesEntries,
                           disabled,order){
index 8c386d52328b72e945c5510018c0c66b438cf0c6..4f23a096fad2f8eb6a22e008f0730eb3a1d39cb9 100644 (file)
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-$(function() {
+define("repositories",["jquery","i18n","jquery_tmpl","bootstrap","jquery_validate"], function() {
 
   // FIXME this must be dynamic if we do a plugin mechanism with dynamic repositories types
   // FIXME i18n
index 8707d9dae328ff0a684a1f904fd35d8ded25921b..f4614a95666f13976c4e2bc1100b1195cc9e2cee 100644 (file)
@@ -16,7 +16,8 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-$(function() {
+define("repository-groups",["jquery","i18n","jquery_tmpl","bootstrap","jquery_validate","jquery_ui"],
+function() {
 
   RepositoryGroup=function(id,repositories){
 
diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/operation.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/operation.js
deleted file mode 100644 (file)
index 4ae29db..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-$(function() {
-
-
-  Operation=function(name) {
-    this.name=ko.observable(name);
-  }
-
-  /**
-   * @param data Operation response from redback rest api
-   */
-  mapOperation=function(data) {
-    return new Operation(data.name,null);
-  }
-
-
-});
\ No newline at end of file
diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/permission.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/permission.js
deleted file mode 100644 (file)
index 7c66844..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-$(function() {
-
-
-  Permission=function(name,operation,resource) {
-    this.name=ko.observable(name);
-    this.operation=ko.observable(operation);
-    this.resource=ko.observable(resource);
-  }
-
-  /**
-   * @param data Permission response from redback rest api
-   */
-  mapPermission=function(data) {
-    return new Permission(data.name,
-                          data.operation?mapOperation(data.operation):null,
-                          data.resource?mapResource(data.resource):null);
-  }
-
-
-});
\ No newline at end of file
index a604ae137c2cf78889f58d25adbe0aa704fe282b..77cc757dec5d51125c62f87d19f19aebb675a7d5 100644 (file)
  * specific language governing permissions and limitations
  * under the License.
  */
-require(["text!js/redback/templates/user-edit.html"+appendTemplateUrl(),
+define("redback-templates",["text!js/redback/templates/user-edit.html"+appendTemplateUrl(),
           "text!js/redback/templates/user-grids.html"+appendTemplateUrl(),
           "text!js/redback/templates/login.html"+appendTemplateUrl(),
           "text!js/redback/templates/register-form.html"+appendTemplateUrl(),
           "text!js/redback/templates/password-change-form.html"+appendTemplateUrl(),
           "text!js/redback/templates/user-edit-form.html"+appendTemplateUrl(),
-          "text!js/redback/templates/roles-tmpl.html"+appendTemplateUrl()],
+          "text!js/redback/templates/roles-tmpl.html"+appendTemplateUrl(),
+          "jquery_tmpl","utils"],
     function(useredit, usergrids, login,register,passwordchange,usereditform,roles) {
 
       var htmlFragment=$("#html-fragments");
index 414796efb9ffb98accaefae34338043e9bdedbb4..fb0370a8bda4b9814aa7d54e4cb4d6a785735143 100644 (file)
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-$(function() {
+define("redback",["jquery","order!utils","jquery_validate","jquery_json","roles","user","users"], function() {
 
   // define a container object with various datas
   window.redbackModel = {userOperationNames:null,key:null,i18n:$.i18n.map};
@@ -50,4 +50,146 @@ $(function() {
     });
   }
 
+  Operation=function(name) {
+    this.name=ko.observable(name);
+  }
+
+  /**
+   * @param data Operation response from redback rest api
+   */
+  mapOperation=function(data) {
+    return new Operation(data.name,null);
+  }
+
+  Permission=function(name,operation,resource) {
+    this.name=ko.observable(name);
+    this.operation=ko.observable(operation);
+    this.resource=ko.observable(resource);
+  }
+
+  /**
+   * @param data Permission response from redback rest api
+   */
+  mapPermission=function(data) {
+    return new Permission(data.name,
+                          data.operation?mapOperation(data.operation):null,
+                          data.resource?mapResource(data.resource):null);
+  }
+
+  Resource=function(identifier,pattern) {
+    this.identifier=ko.observable(identifier);
+    this.pattern=ko.observable(pattern);
+  }
+
+  /**
+   * @param data Resource response from redback rest api
+   */
+  mapResource=function(data) {
+    return new Resource(data.identifier,data.pattern);
+  }
+
+  //---------------------------------------
+  // register part
+  //---------------------------------------
+
+  /**
+   * open the register modal box
+   */
+  registerBox=function(){
+    if (window.modalRegisterWindow==null) {
+      window.modalRegisterWindow = $("#modal-register").modal({backdrop:'static',show:false});
+      window.modalRegisterWindow.bind('hidden', function () {
+        $("#modal-register-err-message").hide();
+      })
+    }
+    window.modalRegisterWindow.modal('show');
+    $("#user-register-form").validate({
+      showErrors: function(validator, errorMap, errorList) {
+        customShowError("#user-register-form",validator,errorMap,errorMap);
+      }
+    });
+    $("#modal-register").delegate("#modal-register-ok", "click keydown keypress", function(e) {
+      e.preventDefault();
+      register();
+    });
+    //$("#modal-register").focus();
+  }
+
+  /**
+   * validate the register form and call REST service
+   */
+  register=function(){
+    $.log("register.js#register");
+    var valid = $("#user-register-form").valid();
+    if (!valid) {
+        return;
+    }
+    clearUserMessages();
+    $("#modal-register-ok").attr("disabled","disabled");
+
+    $('#modal-register-footer').append(smallSpinnerImg());
+
+    var user = {};
+    user.username = $("#user-register-form-username").val();
+    user.fullName = $("#user-register-form-fullname").val();
+    user.email = $("#user-register-form-email").val();
+    jQuery.ajax({
+      url:  'restServices/redbackServices/userService/registerUser',
+      data:  JSON.stringify(user),
+      type: 'POST',
+      contentType: "application/json",
+      success: function(result){
+        var registered = false;
+        if (result == "-1") {
+          registered = false;
+        } else {
+          registered = true;
+        }
+
+        if (registered == true) {
+          window.modalRegisterWindow.modal('hide');
+          $("#register-link").hide();
+          // FIXME i18n
+          displaySuccessMessage("registered your key has been sent");
+        }
+      },
+      complete: function(){
+        $("#modal-register-ok").removeAttr("disabled");
+        removeSmallSpinnerImg();
+      },
+      error: function(result) {
+        var obj = jQuery.parseJSON(result.responseText);
+        displayRedbackError(obj);
+        window.modalRegisterWindow.modal('hide');
+      }
+    })
+
+  }
+
+  /**
+   * validate a registration key and go to change password key
+   * @param key
+   */
+  validateKey=function(key,registration) {
+    // FIXME spinner display
+    $.ajax({
+      url: 'restServices/redbackServices/userService/validateKey/'+key,
+      type: 'GET',
+       success: function(result){
+         window.redbackModel.key=key;
+         $.log("validateKey#sucess");
+         changePasswordBox(false,registration?registration:true,null);
+       },
+       complete: function(){
+         // hide spinner
+       },
+       error: function(result) {
+         $.log("validateKey#error");
+         var obj = jQuery.parseJSON(result.responseText);
+         $.log("validateKey#error response:"+obj);
+         displayRedbackError(obj);
+       }
+    })
+  }
+
 });
\ No newline at end of file
diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/register.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/register.js
deleted file mode 100644 (file)
index 9b887f8..0000000
+++ /dev/null
@@ -1,121 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-$(function() {
-
-  /**
-   * open the register modal box
-   */
-  registerBox=function(){
-    if (window.modalRegisterWindow==null) {
-      window.modalRegisterWindow = $("#modal-register").modal({backdrop:'static',show:false});
-      window.modalRegisterWindow.bind('hidden', function () {
-        $("#modal-register-err-message").hide();
-      })
-    }
-    window.modalRegisterWindow.modal('show');
-    $("#user-register-form").validate({
-      showErrors: function(validator, errorMap, errorList) {
-        customShowError("#user-register-form",validator,errorMap,errorMap);
-      }
-    });
-    $("#modal-register").delegate("#modal-register-ok", "click keydown keypress", function(e) {
-      e.preventDefault();
-      register();
-    });
-    //$("#modal-register").focus();
-  }
-
-  /**
-   * validate the register form and call REST service
-   */
-  register=function(){
-    $.log("register.js#register");
-    var valid = $("#user-register-form").valid();
-    if (!valid) {
-        return;
-    }
-    clearUserMessages();
-    $("#modal-register-ok").attr("disabled","disabled");
-
-    $('#modal-register-footer').append(smallSpinnerImg());
-
-    var user = {};
-    user.username = $("#user-register-form-username").val();
-    user.fullName = $("#user-register-form-fullname").val();
-    user.email = $("#user-register-form-email").val();
-    jQuery.ajax({
-      url:  'restServices/redbackServices/userService/registerUser',
-      data:  '{"user":'+JSON.stringify(user)+'}',
-      type: 'POST',
-      contentType: "application/json",
-      success: function(result){
-        var registered = false;
-        if (result == "-1") {
-          registered = false;
-        } else {
-          registered = true;
-        }
-
-        if (registered == true) {
-          window.modalRegisterWindow.modal('hide');
-          $("#register-link").hide();
-          // FIXME i18n
-          displaySuccessMessage("registered your key has been sent");
-        }
-      },
-      complete: function(){
-        $("#modal-register-ok").removeAttr("disabled");
-        removeSmallSpinnerImg();
-      },
-      error: function(result) {
-        var obj = jQuery.parseJSON(result.responseText);
-        displayRedbackError(obj);
-        window.modalRegisterWindow.modal('hide');
-      }
-    })
-
-  }
-
-  /**
-   * validate a registration key and go to change password key
-   * @param key
-   */
-  validateKey=function(key,registration) {
-    // FIXME spinner display
-    $.ajax({
-      url: 'restServices/redbackServices/userService/validateKey/'+key,
-      type: 'GET',
-       success: function(result){
-         window.redbackModel.key=key;
-         $.log("validateKey#sucess");
-         changePasswordBox(false,registration?registration:true,null);
-       },
-       complete: function(){
-         // hide spinner
-       },
-       error: function(result) {
-         $.log("validateKey#error");
-         var obj = jQuery.parseJSON(result.responseText);
-         $.log("validateKey#error response:"+obj);
-         displayRedbackError(obj);
-       }
-    })
-  }
-
-});
\ No newline at end of file
diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/resource.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/resource.js
deleted file mode 100644 (file)
index 11bdd30..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-$(function() {
-
-
-  Resource=function(identifier,pattern) {
-    this.identifier=ko.observable(identifier);
-    this.pattern=ko.observable(pattern);
-  }
-
-  /**
-   * @param data Resource response from redback rest api
-   */
-  mapResource=function(data) {
-    return new Resource(data.identifier,data.pattern);
-  }
-
-
-});
\ No newline at end of file
index 749678d877df46af90628d2abaaabdb8c1a64c9a..2efdedc33b39d9241090d360a854af5b6937ab80 100644 (file)
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-$(function() {
+define("roles",["jquery","order!utils","i18n","jquery_validate","order!knockout","order!knockout.simpleGrid"], function() {
 
   Role = function(name,description,assignable,childRoleNames,parentRoleNames,users,parentsRolesUsers,permissions,otherUsers){
 
index b6398d4319c4d6c0067990a8f91dc13449cdc8b5..56e6e8474669c14fc9084300a4dbe170998ed394 100644 (file)
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-$(function() {
+define("user",["jquery","order!utils","i18n","jquery_validate","order!knockout","order!knockout.simpleGrid"], function() {
 
   /**
    * object model for user with some function to create/update/delete users
index c1e2b6ad100d078834ec21593b9abee783f4d68d..6e54b2c611a7fca70cb997782a05275ec041a0c5 100644 (file)
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-$(function() {
+define("users",["jquery","order!utils","i18n","jquery_validate","order!knockout","order!knockout.simpleGrid"], function() {
 
   /**
    * view model used for users grid