[Title] Dibs web bug fix & add license
authordibs <dibs@samsung.com>
Tue, 18 Dec 2012 05:08:20 +0000 (14:08 +0900)
committerdibs <dibs@samsung.com>
Tue, 18 Dec 2012 05:08:20 +0000 (14:08 +0900)
40 files changed:
dibs-web/app/controllers/admin_controller.rb
dibs-web/app/controllers/admin_distribution_controller.rb
dibs-web/app/controllers/admin_group_controller.rb
dibs-web/app/controllers/admin_project_controller.rb
dibs-web/app/controllers/admin_server_controller.rb
dibs-web/app/controllers/admin_user_controller.rb
dibs-web/app/controllers/application_controller.rb
dibs-web/app/controllers/jobs_controller.rb
dibs-web/app/controllers/projects_controller.rb
dibs-web/app/controllers/sessions_controller.rb
dibs-web/app/controllers/users_controller.rb
dibs-web/app/controllers/utils.rb
dibs-web/config/database.yml
dibs-web/public/index.html
dibs-web/public/javascripts/admin-distribution-add.js
dibs-web/public/javascripts/admin-distribution-modify.js
dibs-web/public/javascripts/admin-distribution.js
dibs-web/public/javascripts/admin-group-add.js
dibs-web/public/javascripts/admin-group-modify.js
dibs-web/public/javascripts/admin-group.js
dibs-web/public/javascripts/admin-project-add.js
dibs-web/public/javascripts/admin-project-modify.js
dibs-web/public/javascripts/admin-project.js
dibs-web/public/javascripts/admin-server-add.js
dibs-web/public/javascripts/admin-server-modify.js
dibs-web/public/javascripts/admin-server-remove.js
dibs-web/public/javascripts/admin-server.js
dibs-web/public/javascripts/admin-user-modify.js
dibs-web/public/javascripts/admin-user.js
dibs-web/public/javascripts/build.js
dibs-web/public/javascripts/dibs-api.js
dibs-web/public/javascripts/jobs.js
dibs-web/public/javascripts/log.js
dibs-web/public/javascripts/main.js
dibs-web/public/javascripts/popup-window.js
dibs-web/public/javascripts/post-process.js
dibs-web/public/javascripts/projects.js
dibs-web/public/javascripts/session.js
dibs-web/public/javascripts/user.js
dibs-web/public/log.html

index bc41fc6dc6d12b4f076b86bb55e9ca041c6c39dd..b2803d50188daf91d08dbc3f89092222613b585c 100644 (file)
@@ -1,3 +1,31 @@
+=begin 
+ admin_controller.rb
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+=end
+
 class AdminController < ApplicationController
 
        before_filter :check_login_status, :check_admin_group
index 956c7d1fa9b121b2897823be70300eda15b0cf53..5b16d3b71c49d7d96d111527d7226a39e51edc09 100644 (file)
@@ -1,3 +1,31 @@
+=begin 
+ admin_distribution_controller.rb
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+=end
+
 class AdminDistributionController < ApplicationController
 
        before_filter :check_login_status, :check_admin_group
index 352cf45906720e5ca8322c589bde54918d922313..5818e1b61524d8e77cefe46f1afa5bcab530546e 100644 (file)
@@ -1,3 +1,31 @@
+=begin 
+ admin_group_controller.rb
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+=end
+
 class AdminGroupController < ApplicationController
 
        before_filter :check_login_status, :check_admin_group
index 372a3462a2f38ad7d611d90a8e4820ff719a89aa..f4496f1ef8ae980ade001a47df1cd6d6a600d6c1 100644 (file)
@@ -1,3 +1,31 @@
+=begin 
+ admin_project_controller.rb
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+=end
+
 class AdminProjectController < ApplicationController
        def queryAllProject
                project_list = Project.all(:order => "name")
@@ -51,7 +79,8 @@ class AdminProjectController < ApplicationController
                                                                                                          FROM projects
                                                                                                                 , distributions
                                                                                                         WHERE distributions.name = \"#{dist_name}\"
-                                                                                                          AND distributions.id = projects.distribution_id ")
+                                                                                                          AND distributions.id = projects.distribution_id 
+                                                                                                        ORDER BY projects.name")
                                if not project_list.nil?
                                        project_list.each do |project|
                                                doc.Project {
index ed53560c434fb9693420f3f8e4c5a41ee609e1d1..8efb20d201e5104a2932c991d02193bd4111a93c 100644 (file)
@@ -1,3 +1,31 @@
+=begin 
+ admin_server_controller.rb
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+=end
+
 class AdminServerController < ApplicationController
        def queryAllServer
                # get full distribution list
index d088373ff42a6f7b76676dd15c91c36d2dbde213..97698a02249c049d6f9e48bf1b1f62e6bf863c37 100644 (file)
@@ -1,9 +1,37 @@
+=begin 
+ admin_user_controller.rb
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+=end
+
 class AdminUserController < ApplicationController
 
        before_filter :check_login_status, :check_admin_group
 
        def queryAllUser
-               user_list = User.all
+               user_list = User.all(:order => "name")
 
                doc = Builder::XmlMarkup.new( :target => out_string = "", :indent => 2 )
                doc.Response {
index bcebb23722205a726b3944c91a63018c3e7fde0c..1ad492132cf2dd0b784df02c84d8ae46f54cc553 100644 (file)
@@ -1,3 +1,31 @@
+=begin 
+ application_controller.rb
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+=end
+
 class ApplicationController < ActionController::Base
        #protect_from_forgery
 
index 71f6ae98163f495f8dc8141e772b0cb7b88d5f3c..34bad93a132626647289e668d77804b50dc64a6e 100644 (file)
@@ -1,3 +1,31 @@
+=begin 
+ jobs_controller.rb
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+=end
+
 class JobsController < ApplicationController
 
        before_filter :check_login_status
index 44670779daa1096e09f6a6951f4186a56353613a..feab06108ea1bb0e41b260ff4abd2cab404eca39 100644 (file)
@@ -1,3 +1,31 @@
+=begin 
+ projects_controller.rb 
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+=end
+
 require 'json'
 
 class ProjectsController < ApplicationController
index 2dcf20bc98c9fb9ade2284b49e18fbbc4aaeef1c..9d901232a75566475b1401f124dc53380f8ff2cf 100644 (file)
@@ -1,3 +1,31 @@
+=begin 
+ sessions_controller.rb 
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+=end
+
 class SessionsController < ApplicationController
        def new
        end
index a096e00d41f31dcae6a557a42c25c444b8de8a41..0b830a1cb8ca3b925f44154b81c8340c4f3261ed 100644 (file)
@@ -1,3 +1,31 @@
+=begin 
+ users_controller.rb
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+=end
+
 class UsersController < ApplicationController
 
        def new
index e768855cc699d4e39d78a0e83447555e3b5260bc..d76e9c6b1fe5ce72dc08c6e1de394a929978f8fd 100644 (file)
@@ -1,3 +1,31 @@
+=begin 
+ utils.rb
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+=end
+
 # constant
 BUILD_SERVER_ADDRESS = "127.0.0.1"
 
index a5cb84b6e1e8eea5cfbf67cfb3ce75e01b548bff..319f61e84847ed42ae00139258f228da9a31cc75 100644 (file)
    timeout: 
 
  development:
-   adapter: mysql2
-   encoding: utf8
+   adapter: 
+   encoding: 
    host: 
-   port:
-   database:
-   username:
-   password:
-   pool: 5
-   timeout: 5000
+   port: 
+   database: 
+   username: 
+   password: 
+   pool: 
+   timeout: 
index 28b4651d3f8f7fe8c15de6494330bdf1a897bbc2..5c553e04b363a6e109666cb9e651b5d009a27990 100644 (file)
@@ -1,3 +1,31 @@
+<!--
+ index.html
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+-->
+
 <!DOCTYPE html>
 <html>
 <head>
index e4d7623bba0da2c4345a7b59f27a2f67d822d7b3..f6486381c50faec3c95505e510c747a6f611a191 100644 (file)
@@ -1,3 +1,31 @@
+/* 
+ admin-distribution-add.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
 function adminDistributionAdd() {
        var changeInfoList = [];
        var changeInfoItem;
index 5928d8833763b712be83d7163b8b1d5e05c34004..5c5c2933cdab6519eb4568e33c518d1036cc076d 100644 (file)
@@ -1,3 +1,31 @@
+/* 
+ admin-distribution-modify.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
 function adminDistributionModifyPopupInit() {
        var distName = $("#adminDistributionSelect option:selected").val();
        var packageServerUrl = document.getElementById("adminDistribution:packageServerUrl").innerHTML;
index 1d550f16709e3cf2714b7b208e06d42aa1a787cd..5668a4dec00df018266b975d7f7666f4e535086a 100644 (file)
@@ -1,3 +1,31 @@
+/* 
+ admin-distribution.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
 function adminDistributionInit() {
        queryAllDistribution( function (xml) {
                var oldDistName = $("#adminDistributionSelect option:selected").val();
index ec47eef8b31003b24c2f0eec1f44fb16ee286d9d..60c7a1660da56c2516710c79cc594040c1a8d01a 100644 (file)
@@ -1,3 +1,31 @@
+/* 
+ admin-group-add.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
 function adminGroupAddInit() {
        document.getElementById('adminGroupAddPopup-Name').value = "";
        document.getElementById('adminGroupAddPopup-Description').value = "";
index 6b9246e4278d27b63da4c77d6e83ea673496a783..17ed56edb37b4793f4c7784b5d816be55231e4a6 100644 (file)
@@ -1,3 +1,31 @@
+/* 
+ admin-group-modify.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
 function adminGroupModifyInit() {
        var index = localStorage.groupTableIndex;
        var groupName = document.getElementById("groupTableName:"+index).innerHTML;
index 549e6861748bfc673c7e0daab2d26c40aee78377..6f2104b7012621e3404c4946d5f643da2038520c 100644 (file)
@@ -1,3 +1,31 @@
+/* 
+ admin-group.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
 function adminGroupInit() {
        adminGroupInitTable();
 
index 6cfbe48f436907c655f2347f49bc0ae6c27cc6b2..7251408f2a67f68168f91dd0aea8717043ab32f8 100644 (file)
@@ -1,3 +1,31 @@
+/* 
+ admin-project-add.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
 function adminProjectAddGitInit() {
        document.getElementById("popup:addGitProjectName").value = "";
        document.getElementById("popup:addGitProjectPassword").value = "";
index 0fd80e264163fc0e74541cfb1edfae8bd78274cd..420d093852001164c6db6a74a89faef9cbbc2502 100644 (file)
@@ -1,3 +1,31 @@
+/* 
+ admin-project-modify.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
 function adminProjectModifyBinaryProjectInit() {
        var projectName = localStorage.projectName;
        var packageName = document.getElementById('modifyBinaryPackageName:'+projectName).innerHTML;
index 2c14b8aa6f3909bf95cf1d15b00b41c4bf3050ce..03e06b782da86c506b5d7a653e586cd97bb71ef8 100644 (file)
@@ -1,3 +1,31 @@
+/* 
+ admin-project.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
 function adminProjectInit() {
        queryAllDistribution( function (xml) {
                var oldDistName = $("#adminProjectDistributionSelect option:selected").val();
index ca5e5081af3de9760f85cfd12aedb619cb43ecd3..18a47d2298874362f05c97bb80730586af6d808b 100644 (file)
@@ -1,3 +1,31 @@
+/* 
+ admin-server-add.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
 function adminServerAddSupportedOsInit() {
        // Remove select option
        $('#adminServer-AddSupportedOs-OsCategory').empty();
index 324b797f0e8be01e825e5a5a70a8f3e2301e47e2..28e9c9786452035dd0e9f38aa7f5f7922dce4801 100644 (file)
@@ -1,3 +1,31 @@
+/* 
+ admin-server-modify.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
 function adminServerModifyRemoteBuildServerInit() {
        var serverAddress = localStorage.remoteBuildServerAddress;
        var serverDescription = localStorage.remoteBuildServerDescription;
@@ -48,7 +76,7 @@ function adminServerModifyRemoteBuildServer() {
                return;
        }
 
-       changeInfoItem = {"Type":"ModifyServer", "Address":serverAddress, "NewAddress":newServerAddress, "Description":description};
+       changeInfoItem = {"Address":serverAddress, "NewAddress":newServerAddress, "Description":description};
        changeInfoList.push(changeInfoItem);
 
        modifyRemoteBuildServer(changeInfoList, function () {
index 6a4b570880949a7f56167c016d8e227ca1818550..db74a01a0a57b07542984baa8687867c21e84a1b 100644 (file)
@@ -1,3 +1,31 @@
+/* 
+ admin-server-remove.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
 function adminServerRemoveOSCategoryInit() {
        // Remove select option
        $('#adminServer-RemoveOSCategory-CategorySelect').empty();
@@ -68,3 +96,21 @@ function adminServerRemoveServerInfo() {
        });
 }
 
+function adminServerRemoveRemoteBuildServer() {
+       var changeInfoList = [];
+       var changeInfoItem;
+       var serverAddress = document.getElementById('adminServer-modifyRemoteBuildServer-OldAddress').value;
+
+       if(serverAddress == ""){
+               alert("server address is invalid");
+               return;
+       }
+
+       changeInfoItem = {"Address":serverAddress};
+       changeInfoList.push(changeInfoItem);
+
+       removeRemoteBuildServer(changeInfoList, function () {
+               $.mobile.changePage("#adminServer"); 
+       });
+}
+
index 4d595d087fbdfe437cd6743c8943f62baeaa745e..6aae3e9f3e65eaafbc26555119ae971392cddda8 100644 (file)
@@ -1,3 +1,31 @@
+/* 
+ admin-server.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
 function adminServerInit() {
        $('#adminServer-RemoteBuildServer').collapsible();
 
index e9506557f352c58fe1d8861d0ac8a2ce6a0d7cf8..fd00e4108d35d246dc2f75f7474eee31d5f5c286 100644 (file)
@@ -1,3 +1,31 @@
+/* 
+ admin-user-modify.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
 function adminUserModifyPopupInit() {
        var index = localStorage.userTableIndex;
        var userName = document.getElementById("userTableName:"+index).innerHTML;
index 9e84e2303f409cf8544f4d75e65ea59d64e6b761..73acf008ec766459cecbbe0e1085f0c288cda87a 100644 (file)
@@ -1,3 +1,31 @@
+/* 
+ admin-user.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
 function adminUserInit() {
        var userTable = document.getElementById("adminUserTable");
 
index ab67195af4c412724494e64af6337c78fe02495b..ce894bd2526a141f24571c96e7677f63e1a59f3c 100644 (file)
@@ -1,3 +1,31 @@
+/* 
+ build.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
 function buildInit() {
        if( $("#select-distribution").children().length == 0 ) {
                queryDistribution( function(xml) {
@@ -59,7 +87,10 @@ function buildQueryRunningProjectList() {
 
                        if (project_type == "GIT") {
                                var cell = document.getElementById("buildGitProjectTable"+":"+project_name+':'+project_os);
-                               cell.setAttribute('bgcolor', '#fbff00');
+
+                               if(cell){
+                                       cell.setAttribute('bgcolor', '#fbff00');
+                               }
                        } 
                });
        });
@@ -307,3 +338,8 @@ function buildBatchFilePathSelector() {
        }, false);      
 }
 
+function buildClear() {
+       $("#select-distribution").empty();
+       
+       buildInitTable();
+}
index dfc97d6934147fa962318c2657d5a213dc626611..5d77209e66e4f5faaa96a8f50def79c712436310 100644 (file)
+/* 
+ dibs-api.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
 // controller: Users
 function signUp(infoList, successFunction) {
-       var url = '/users/signup';
+       var url = 'users/signup';
        postForServer(url, infoList, successFunction);
 }
 
 function queryUserInfo(successFunction) {
-       var url = '/users/query';
+       var url = 'users/query';
        getInfoFromServer(url, successFunction);
 }
 
 function modifyUserInfo(changeInfoList, successFunction) {
-       var url = '/users/modify';
+       var url = 'users/modify';
        postForServer(url, changeInfoList, successFunction);
 }
 
 // controller: Sessions
 function login(infoList, successFunction) {
-       var url = '/sessions/login';
+       var url = 'sessions/login';
        postForServer(url, infoList, successFunction);
 }
 
+function logout() {
+       var url = 'sessions/logout';
+       deleteForServer(url, function() {
+               expireSession();
+               dibsWebClear();
+       });
+}
+
 // controller: projects
 function queryDistribution(successFunction) {
-       var url = '/projects/queryDistribution';
+       var url = 'projects/queryDistribution';
        getInfoFromServer(url, successFunction);
 }
 
 // controller : projects
 function buildProject(changeInfoList, successFunction) {
-       var url = '/projects/buildProject';
+       var url = 'projects/buildProject';
        postForServer(url, changeInfoList, successFunction);
 }
 
 function queryProjectsInDistribution(distName, successFunction) {
-       var url = '/projects/queryProjectsInDistribution/' + distName;
+       var url = 'projects/queryProjectsInDistribution/' + distName;
        getInfoFromServer(url, successFunction);
 }
 
 function queryRunningProjectsInfoInDistribution(distName, successFunction) {
-       var url = '/projects/queryRunningProjectsInfoInDistribution/' + distName;
+       var url = 'projects/queryRunningProjectsInfoInDistribution/' + distName;
        getInfoFromServer(url, successFunction);
 }
 
 function queryProjectsInfoInDistribution(distName, successFunction) {
-       var url = '/projects/queryProjectsInfoInDistribution/' + distName;
+       var url = 'projects/queryProjectsInfoInDistribution/' + distName;
        getInfoFromServer(url, successFunction);
 }
 
 // controller : admin_group
 function queryAllGroup(successFunction) {
-       var url = '/admin_group/queryAllGroup';
+       var url = 'admin_group/queryAllGroup';
        getInfoFromServer(url, successFunction);
 }
 
 function queryGroupInfo(groupName, successFunction) {
-       var url = '/admin_group/queryGroupInfo/' + groupName;
+       var url = 'admin_group/queryGroupInfo/' + groupName;
        getInfoFromServer(url, successFunction);
 }
 
 function addGroup(changeInfoList, successFunction) {
-       var url = '/admin_group/addGroup';
+       var url = 'admin_group/addGroup';
        postForServer(url, changeInfoList, successFunction);
 }
 
 function removeGroup(changeInfoList, successFunction) {
-       var url = '/admin_group/removeGroup';
+       var url = 'admin_group/removeGroup';
        postForServer(url, changeInfoList, successFunction);
 }
 
 function changeGroup(changeInfoList, successFunction) {
-       var url = '/admin_group/modifyGroup';
+       var url = 'admin_group/modifyGroup';
        postForServer(url, changeInfoList, successFunction);
 }
 
 // controller : admin_user
 function queryAllUser(successFunction) {
-       var url = '/admin_user/queryAllUser';
+       var url = 'admin_user/queryAllUser';
        getInfoFromServer(url, successFunction);
 }
 
 function changeUser(changeInfoList, successFunction) {
-       var url = '/admin_user/modifyUser';
+       var url = 'admin_user/modifyUser';
        postForServer(url, changeInfoList, successFunction);
 }
 
 function removeUser(changeInfoList, successFunction) {
-       var url = '/admin_user/removeUser';
+       var url = 'admin_user/removeUser';
        postForServer(url, changeInfoList, successFunction);
 }
 
 // controller : admin_server
 function queryServerInfo(successFunction) {
-       var url = '/admin_server/queryServerInfo';
+       var url = 'admin_server/queryServerInfo';
        getInfoFromServer(url, successFunction);
 }
 
 function queryAllServer(successFunction) {
-       var url = '/admin_server/queryAllServer';
+       var url = 'admin_server/queryAllServer';
        getInfoFromServer(url, successFunction);
 }
 
 function addRemoteBuildServer(changeInfoList, successFunction) {
-       var url = '/admin_server/addRemoteBuildServer';
+       var url = 'admin_server/addRemoteBuildServer';
        postForServer(url, changeInfoList, successFunction);
 }
 
 function removeRemoteBuildServer(changeInfoList, successFunction) {
-       var url = '/admin_server/removeRemoteBuildServer';
+       var url = 'admin_server/removeRemoteBuildServer';
        postForServer(url, changeInfoList, successFunction);
 }
 
 function modifyRemoteBuildServer(changeInfoList, successFunction) {
-       var url = '/admin_server/modifyRemoteBuildServer';
+       var url = 'admin_server/modifyRemoteBuildServer';
        postForServer(url, changeInfoList, successFunction);
 }
 
 function addOSCategory(changeInfoList, successFunction) {
-       var url = '/admin_server/addOsCategory';
+       var url = 'admin_server/addOsCategory';
        postForServer(url, changeInfoList, successFunction);
 }
 
 function removeOSCategory(changeInfoList, successFunction) {
-       var url = '/admin_server/removeOsCategory';
+       var url = 'admin_server/removeOsCategory';
        postForServer(url, changeInfoList, successFunction);
 }
 
 function modifyOSCategory(changeInfoList, successFunction) {
-       var url = '/admin_server/modifyOsCategory';
+       var url = 'admin_server/modifyOsCategory';
        postForServer(url, changeInfoList, successFunction);
 }
 
 function addSupportedOS(changeInfoList, successFunction) {
-       var url = '/admin_server/addSupportedOS';
+       var url = 'admin_server/addSupportedOS';
        postForServer(url, changeInfoList, successFunction);
 }
 
 function removeSupportedOS(changeInfoList, successFunction) {
-       var url = '/admin_server/removeSupportedOS';
+       var url = 'admin_server/removeSupportedOS';
        postForServer(url, changeInfoList, successFunction);
 }
 
 function modifySupportedOS(changeInfoList, successFunction) {
-       var url = '/admin_server/modifySupportedOS';
+       var url = 'admin_server/modifySupportedOS';
        postForServer(url, changeInfoList, successFunction);
 }
 
 function addServerInfo(changeInfoList, successFunction) {
-       var url = '/admin_server/addServerInfo';
+       var url = 'admin_server/addServerInfo';
        postForServer(url, changeInfoList, successFunction);
 }
 
 function removeServerInfo(changeInfoList, successFunction) {
-       var url = '/admin_server/removeServerInfo';
+       var url = 'admin_server/removeServerInfo';
        postForServer(url, changeInfoList, successFunction);
 }
 
 function modifyServerInfo(changeInfoList, successFunction) {
-       var url = '/admin_server/modifyServerInfo';
+       var url = 'admin_server/modifyServerInfo';
        postForServer(url, changeInfoList, successFunction);
 }
 
 // controller : admin_project
 function queryAllProject(successFunction) {
-       var url = '/admin_project/queryAllProject';
+       var url = 'admin_project/queryAllProject';
        getInfoFromServer(url, successFunction);
 }
 
 function queryProjectsInDistributionForAdmin(distName, successFunction) {
-       var url = '/admin_project/queryProjectsInDistributionForAdmin/' + distName;
+       var url = 'admin_project/queryProjectsInDistributionForAdmin/' + distName;
        getInfoFromServer(url, successFunction);
 }
 
 function addProject(changeInfoList, successFunction) {
-       var url = '/admin_project/addProject';
+       var url = 'admin_project/addProject';
        postForServer(url, changeInfoList, successFunction);
 }
 
 function removeProject(changeInfoList, successFunction) {
-       var url = '/admin_project/removeProject';
+       var url = 'admin_project/removeProject';
        postForServer(url, changeInfoList, successFunction);
 }
 
 function modifyProject(changeInfoList, successFunction) {
-       var url = '/admin_project/modifyProject';
+       var url = 'admin_project/modifyProject';
        postForServer(url, changeInfoList, successFunction);
 }
 
 // controller : admin_distribution
 function queryAllDistribution(successFunction) {
-       var url = '/admin_distribution/queryAllDistribution';
+       var url = 'admin_distribution/queryAllDistribution';
        getInfoFromServer(url, successFunction);
 }
 
 function queryDistributionInfo(distName, successFunction) {
-       var url = '/admin_distribution/queryDistributionInfo/' + distName;
+       var url = 'admin_distribution/queryDistributionInfo/' + distName;
        getInfoFromServer(url, successFunction);
 }
 
 function addDistribution(changeInfoList, successFunction) {
-       var url = '/admin_distribution/addDistribution';
+       var url = 'admin_distribution/addDistribution';
        postForServer(url, changeInfoList, successFunction);
 }
 
 function removeDistribution(changeInfoList, successFunction) {
-       var url = '/admin_distribution/removeDistribution';
+       var url = 'admin_distribution/removeDistribution';
        postForServer(url, changeInfoList, successFunction);
 }
 
 function modifyDistribution(changeInfoList, successFunction) {
-       var url = '/admin_distribution/modifyDistribution';
+       var url = 'admin_distribution/modifyDistribution';
        postForServer(url, changeInfoList, successFunction);
 }
 
 // controller : admin
 function queryAllOS(successFunction) {
-       var url = '/admin/queryAllOS';
+       var url = 'admin/queryAllOS';
        getInfoFromServer(url, successFunction);
 }
 
 function queryAllOSCategory(successFunction) {
-       var url = '/admin/queryAllOSCategory';
+       var url = 'admin/queryAllOSCategory';
        getInfoFromServer(url, successFunction);
 }
 
@@ -256,3 +292,21 @@ function postForServer(url, changeInfoList, successFunction) {
        });
 }
 
+function deleteForServer(url, successFunction) {
+       $.ajax({
+               url: baseUrl+url,
+               type: 'DELETE',
+               async: false,
+               cache: false,
+               dataType: 'xml',
+               timeout: 1000,
+               success: function(xml) {
+                       expireSession();
+                       dibsWebClear();
+               },
+               error: function(jqXHR) {
+                       errorProcess(jqXHR);
+               }
+       });
+}
+
index 20753b39ecfa7f1fac820f0935254a4881d0ff07..16d248d62ad0f1a2715e39641ce1f17c0ebb2b4f 100644 (file)
@@ -1,3 +1,31 @@
+/* 
+ jobs.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
 var suggestion_list = new Array();
 
 $(function() {
@@ -209,38 +237,38 @@ function clearJobList() {
 function queryJobListAll(distribution) {
        var selectedStatus= $('#jobStatusSelect').find("input[type='radio']:checked").val();
        clearJobList();
-       queryJobList(baseUrl+"/jobs/list", distribution, selectedStatus, "LATEST");
+       queryJobList(baseUrl+"jobs/list", distribution, selectedStatus, "LATEST");
 }
 
 function queryJobListJobId(distribution, jobId) {
        var distribution = $("#jobSelectDistribution option:selected").val(); 
        var selectedStatus= $('#jobStatusSelect').find("input[type='radio']:checked").val();
        clearJobList();
-       queryJobList(baseUrl+"/jobs/list", distribution, selectedStatus, eval(parseInt(jobId) + 1));
+       queryJobList(baseUrl+"jobs/list", distribution, selectedStatus, eval(parseInt(jobId) + 1));
 }
 function queryJobListUserName(distribution, name) {
        var distribution = $("#jobSelectDistribution option:selected").val(); 
        var selectedStatus= $('#jobStatusSelect').find("input[type='radio']:checked").val();
        clearJobList();
-       queryJobList(baseUrl+"/jobs/listSearchUser/"+name, distribution, selectedStatus, "LATEST");
+       queryJobList(baseUrl+"jobs/listSearchUser/"+name, distribution, selectedStatus, "LATEST");
 }
 
 function queryJobListUserGroup(distribution, group) {
        var selectedStatus= $('#jobStatusSelect').find("input[type='radio']:checked").val();
        clearJobList();
-       queryJobList(baseUrl+"/jobs/listSearchGroup/"+group, distribution, selectedStatus, "LATEST");
+       queryJobList(baseUrl+"jobs/listSearchGroup/"+group, distribution, selectedStatus, "LATEST");
 }
 
 function queryJobListProject(distribution, project) {
        var selectedStatus= $('#jobStatusSelect').find("input[type='radio']:checked").val();
        clearJobList();
-       queryJobList(baseUrl+"/jobs/listSearchProject/"+project, distribution, selectedStatus, "LATEST");
+       queryJobList(baseUrl+"jobs/listSearchProject/"+project, distribution, selectedStatus, "LATEST");
 }
 
 function queryJobListDate(distribution, date) {
        var selectedStatus= $('#jobStatusSelect').find("input[type='radio']:checked").val();
        clearJobList();
-       queryJobList(baseUrl+"/jobs/listSearchDate/"+date, distribution, selectedStatus, "LATEST");
+       queryJobList(baseUrl+"jobs/listSearchDate/"+date, distribution, selectedStatus, "LATEST");
 }
 
 function jobQueryDistribution() {
@@ -441,3 +469,9 @@ function jobsQueryProjectsList() {
                });
        }
 }
+
+function jobsClear() {
+       $("#jobSelectDistribution").empty();
+       clearJobList();
+}
+
index 74b1ed43ecf81020710f599b7ac727e2c9bd9bc0..57282b1820fe098c8082f0d7b5a419d21bbed1b0 100644 (file)
@@ -1,3 +1,31 @@
+/* 
+ log.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
 var request;
 var stop = 1;
 
index 80679cba48e81cbc92bb378c3ac45b0ec7da8256..c37bcbb499d21e75b8d3b5f7bb5a890e3954d860 100644 (file)
@@ -1,9 +1,50 @@
+/* 
+ main.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
 //Initialize function
-var baseUrl = "http://172.21.110.234:3300";
 var baseUrl = "";
+
 var init = function () {
-       // TODO:: Do your initialization job
        console.log("init() called");
+       var myUrl = location.href;
+       var urlCut = myUrl.indexOf("index.html");
+       var     sharpCut = myUrl.indexOf("#");
+
+       if(urlCut > 0) {
+               baseUrl = myUrl.substring(0, urlCut);
+       }
+       else if(sharpCut > 0) {
+               baseUrl = myUrl.substring(0, sharpCut);
+       }
+       else {
+               baseUrl = window.location.href;
+       }
+       console.log("base url:"+baseUrl);
 };
 $(document).ready(init);
 
@@ -163,14 +204,19 @@ function clearFormData(elementId){
 }
 
 function generateNavigationBar(id) {
-       var admin = sessionStorage.sessionInfoAdmin;
-       if(admin == "TRUE")
-       {
-               generateNavigationBarAdmin(id);
-       }
-       else
+       if(sessionStorage.sessionInfoEmail) 
        {
-               generateNavigationBarUser(id);
+               var admin = sessionStorage.sessionInfoAdmin;
+               if(admin == "TRUE")
+               {
+                       generateNavigationBarAdmin(id);
+               }
+               else
+               {
+                       generateNavigationBarUser(id);
+               }
+       } else {
+               $("#"+id+"-navigationBar").empty();
        }
 }
 
@@ -312,3 +358,9 @@ function generateNavigationBarAdmin(id) {
        $("#"+id+"-navigationBar").empty();
        $("#"+id+"-navigationBar").append(naviHtml).listview("refresh");
 }
+
+function dibsWebClear(){
+       projectsClear();
+       buildClear();
+       jobsClear();
+}
index 85146ce1fc4ca9363555d1113bc22a4a88510002..31a41ef23b2e1cf1347d1a7e423c1041dab2c2a5 100644 (file)
@@ -1,3 +1,31 @@
+/* 
+ popup-window.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
 (function($){
        $.fn.popupWindow = function(instanceSettings){
 
index caf09c6601e13531a366c930c3bd234017d894f7..c962b3d294a922739557cf588a5f5e87cd7ec8de 100644 (file)
@@ -1,3 +1,31 @@
+/* 
+ post-process.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
 $('.uploadWindow').popupWindow({ 
        height:200, 
        width:400, 
index 81be46942b5babd7afbec63686a7408e879bcc3e..6f02e59a44d810471c142cdb07b29fef05ae3585 100644 (file)
@@ -1,3 +1,31 @@
+/* 
+ projects.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
 function projectsInit() {
        if( $("#projects-select-distribution").children().length == 0 ) {
                queryDistribution( function(xml) {
@@ -133,3 +161,15 @@ function projectsAppendProjectList( project, projectList ) {
                });
        });
 }
+
+function projectsClear() {
+       $("#projects-select-distribution").empty();
+
+       var projectList = document.getElementById("projects-project-list");
+       /* remove all list */
+       while(projectList.hasChildNodes())
+       {
+               projectList.removeChild(projectList.firstChild);
+       }
+}
+
index dc5ebb8cdc76f6c39abbdd2eef7e2c616dd237e3..12582dc43b1613c519b0b11171fefbda1e0e1459 100644 (file)
@@ -1,3 +1,31 @@
+/* 
+ session.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
 $(function() {
        $('#login-password').keypress(function() {
                if(event.keyCode == '13') {
@@ -100,24 +128,6 @@ function sessionLogin() {
        });
 } 
 
-function logout(){
-       $.ajax({
-               url: baseUrl + "/sessions/logout",
-               type: 'DELETE',
-               async: false,
-               cache: false,
-               dataType: 'xml',
-               timeout: 1000,
-               error: function() {
-                       alert('Error loading XML document');
-               },
-               success: function(xml) {
-                       expireSession();
-               }
-       });
-}
-
-
 function signupQueryGroupList() {
        queryAllGroup( function(xml) {
                $("#applyGroupRadio").children().remove();
index 0c1366f56a83bb4442f5228ad0ff2b11970e16a9..70d8689216594c96f11808ed161883a0affbdc26 100644 (file)
@@ -1,3 +1,31 @@
+/* 
+ user.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed 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.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
 $(function() {
        $('#user-password-confirmation').keypress(function() {
                if(event.keyCode == '13') {
@@ -13,8 +41,9 @@ function userSignUp() {
        var name = $('#user-name').val();
        var password = $('#user-password').val();
        var password_confirm = $('#user-password-confirmation').val();
+       var emailCheckReg = /[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/
 
-       if(email == ""){
+       if(email == "" || !emailCheckReg.test(email)){
                alert("Email is invalid");
                return false;
        }
index f2023ff6ff180fb4bb5d0e4d4efd309d7a17f364..4b34fecd96e2faf994af0e75cfeeb203b4190e1e 100644 (file)
@@ -1,17 +1,27 @@
+<!DOCTYPE html>
+<html>
+<head>
+       <script type="text/javascript" src="javascripts/jquery-1.7.1.js"></script>
+</head>
+
+<body>
+       <table id="logTable" style="border: #000000 1px solid; font-size:9pt">
+       </table> 
+       <div data-role="controlgroup" data-type="horizontal">
+               <input type="button" value="More" onClick=moreLog() / > 
+               <input type="button" value="Stop" onClick=stopLog() / > 
+       </div>
+</body>
+</html>
+
 <script language="javascript" type="text/javascript">
        var request;
        var stop = 1;
 
+       var baseUrl;
        var job_id;
        var last_line = 0;
 
-       var myUrl = location.href;
-       var varCut = myUrl.indexOf("?");
-       var varCheck = myUrl.substring(varCut+1);
-       eval(varCheck);
-
-       job_id = jobid;
-
        function createHttpRequest() {
                request = false;
                try {
                createHttpRequest();
                if(request) {
                        var next_line = Number(last_line) + 1;
-                       var url = "/jobs/log/"+ job_id + "/" + next_line;
+                       var url = baseUrl + "jobs/log/"+ job_id + "/" + next_line;
                        request.open("GET", url, true);
                        request.onreadystatechange = updatePage;
                        request.send(null);
                window.scrollTo(0,getYScroll());
        }
 
-       requestLog();
-</script>
+       var init = function () {
+               console.log("init() called");
+               var myUrl = location.href;
+               var varCut = myUrl.indexOf("?");
+               var varCheck = myUrl.substring(varCut+1);
+               eval(varCheck);
 
-<div data-role="page" id="jobs">
-       <table id="logTable" style="border: #000000 1px solid; font-size:9pt">
-       </table> 
-       <div data-role="controlgroup" data-type="horizontal">
-               <input type="button" value="More" onClick=moreLog() / > 
-               <input type="button" value="Stop" onClick=stopLog() / > 
-       </div>
-</div>
+               job_id = jobid;
+               console.log(job_id);
 
+               var baseCut = myUrl.indexOf("log.html");
+
+               baseUrl = myUrl.substring(0, baseCut);
+               console.log("base url:"+baseUrl);
+
+               requestLog();
+       };
+
+       $(document).ready(init);
+</script>