Author: [email protected] Date: Wed Jan 25 09:52:05 2012 New Revision: 1994 Log: [AMDATUOPENSOCIAL-154] Added and updated license headers and NOTICE file.
Modified: trunk/amdatu-opensocial/dashboard-plugin/NOTICE trunk/amdatu-opensocial/dashboard-plugin/pom.xml trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/css/dashboardui.css trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/dashboard.html trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/dashboard_custom_eventhandler.html trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/dashboard_metadata.html trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/dashboard_minimal.html trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/dashboard_multiple.html trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/dashboard_serverside_storage.html trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/tabs/ trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/templates.html trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/editwidget1.html trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/editwidget2.html trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/editwidget3.html trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/widget1.html trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/widget2.html trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/widget3.html trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/widget4.html trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/widget5.html trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/js/dashboardmanager.js trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/js/dashboardpreferencesmanager.js trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/js/jquery.dashboard.js trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/js/jquery.metadata.js trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/js/themeroller.js Modified: trunk/amdatu-opensocial/dashboard-plugin/NOTICE ============================================================================== --- trunk/amdatu-opensocial/dashboard-plugin/NOTICE (original) +++ trunk/amdatu-opensocial/dashboard-plugin/NOTICE Wed Jan 25 09:52:05 2012 @@ -14,6 +14,19 @@ For more information, see http://jquery.com/ License: Dual licensed, GPL (https://github.com/jquery/jquery/blob/master/GPL-LICENSE.txt) and MIT (see https://raw.github.com/jquery/jquery/master/MIT-LICENSE.txt) +- +This product includes the jQuery Cookie plugin, developed by Klaus Hartl (stilbuero.de). +Copyright (c) 2006 Klaus Hartl +For more information, see http://code.google.com/p/jqueryjs/source/browse/trunk/plugins/cookie/?r=6125 +License: Dual licensed, GPL (https://github.com/jquery/jquery/blob/master/GPL-LICENSE.txt) + and MIT (see https://raw.github.com/jquery/jquery/master/MIT-LICENSE.txt) +- +This product includes the jQuery Metadata plugin, developed by John Resig, Yehuda Katz, J�rn Zaefferer and Paul McLanahan +Copyright (c) 2006 John Resig, Yehuda Katz, J�rn Zaefferer, Paul McLanahan +For more information, see http://archive.plugins.jquery.com/project/metadata +License: Dual licensed, GPL (https://github.com/jquery/jquery/blob/master/GPL-LICENSE.txt) + and MIT (see https://raw.github.com/jquery/jquery/master/MIT-LICENSE.txt) + II. Used Software Modified: trunk/amdatu-opensocial/dashboard-plugin/pom.xml ============================================================================== --- trunk/amdatu-opensocial/dashboard-plugin/pom.xml (original) +++ trunk/amdatu-opensocial/dashboard-plugin/pom.xml Wed Jan 25 09:52:05 2012 @@ -42,6 +42,11 @@ <configuration> <failOnWarning>false</failOnWarning> <force>true</force> + <excludes> + <exclude>**/*.css</exclude> + <exclude>**/LICENSE</exclude> + <exclude>**/NOTICE</exclude> + </excludes> <aggregations> <!-- Generates the aggregated but uncompressed JS file --> @@ -54,7 +59,7 @@ <output>target/classes/static/js/jquery.dashboard.all.js</output> <includes> - <include>**/*.js</include> + <include>**/*.js</include> </includes> <excludes> <exclude>**/*-min.js</exclude> @@ -71,9 +76,10 @@ <output>target/classes/static/js/jquery.dashboard.all.min.js</output> <includes> - <include>**/*-min.js</include> + <include>**/*-min.js</include> </includes> </aggregation> + </aggregations> </configuration> </execution> Modified: trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/css/dashboardui.css ============================================================================== --- trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/css/dashboardui.css (original) +++ trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/css/dashboardui.css Wed Jan 25 09:52:05 2012 @@ -1,4 +1,20 @@ -.ui-tabs-panel { +/* + * Copyright (c) 2010, 2011 The Amdatu Foundation + * + * 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. + */ + + .ui-tabs-panel { min-height:800px; } Modified: trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/dashboard.html ============================================================================== --- trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/dashboard.html (original) +++ trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/dashboard.html Wed Jan 25 09:52:05 2012 @@ -1,3 +1,19 @@ +<!-- + Copyright (c) 2010, 2011 The Amdatu Foundation + + 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. +--> + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> Modified: trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/dashboard_custom_eventhandler.html ============================================================================== --- trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/dashboard_custom_eventhandler.html (original) +++ trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/dashboard_custom_eventhandler.html Wed Jan 25 09:52:05 2012 @@ -1,3 +1,19 @@ +<!-- + Copyright (c) 2010, 2011 The Amdatu Foundation + + 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. +--> + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> Modified: trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/dashboard_metadata.html ============================================================================== --- trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/dashboard_metadata.html (original) +++ trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/dashboard_metadata.html Wed Jan 25 09:52:05 2012 @@ -1,3 +1,19 @@ +<!-- + Copyright (c) 2010, 2011 The Amdatu Foundation + + 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. +--> + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> Modified: trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/dashboard_minimal.html ============================================================================== --- trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/dashboard_minimal.html (original) +++ trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/dashboard_minimal.html Wed Jan 25 09:52:05 2012 @@ -1,3 +1,19 @@ +<!-- + Copyright (c) 2010, 2011 The Amdatu Foundation + + 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. +--> + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> Modified: trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/dashboard_multiple.html ============================================================================== --- trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/dashboard_multiple.html (original) +++ trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/dashboard_multiple.html Wed Jan 25 09:52:05 2012 @@ -1,4 +1,20 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" +<!-- + Copyright (c) 2010, 2011 The Amdatu Foundation + + 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. +--> + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> Modified: trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/dashboard_serverside_storage.html ============================================================================== --- trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/dashboard_serverside_storage.html (original) +++ trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/dashboard_serverside_storage.html Wed Jan 25 09:52:05 2012 @@ -1,3 +1,19 @@ +<!-- + Copyright (c) 2010, 2011 The Amdatu Foundation + + 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. +--> + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> Modified: trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/templates.html ============================================================================== --- trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/templates.html (original) +++ trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/templates.html Wed Jan 25 09:52:05 2012 @@ -1,3 +1,19 @@ +<!-- + Copyright (c) 2010, 2011 The Amdatu Foundation + + 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. +--> + <script type="text/html" id="categorytemplate"> <li id="<%= id %>" class="selectcategory"><button><%= title %> (<%= amount %>)</button></li> </script> Modified: trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/editwidget1.html ============================================================================== --- trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/editwidget1.html (original) +++ trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/editwidget1.html Wed Jan 25 09:52:05 2012 @@ -1,5 +1,21 @@ +<!-- + Copyright (c) 2010, 2011 The Amdatu Foundation + + 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. +--> + edit widget 1 <form> - <input type="submit" value="submit" /> + <input type="submit" value="submit" /> </form> \ No newline at end of file Modified: trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/editwidget2.html ============================================================================== --- trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/editwidget2.html (original) +++ trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/editwidget2.html Wed Jan 25 09:52:05 2012 @@ -1,5 +1,21 @@ +<!-- + Copyright (c) 2010, 2011 The Amdatu Foundation + + 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. +--> + edit widget 2 <form> - <input type="submit" value="submit" /> + <input type="submit" value="submit" /> </form> \ No newline at end of file Modified: trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/editwidget3.html ============================================================================== --- trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/editwidget3.html (original) +++ trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/editwidget3.html Wed Jan 25 09:52:05 2012 @@ -1,5 +1,21 @@ +<!-- + Copyright (c) 2010, 2011 The Amdatu Foundation + + 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. +--> + edit widget 3 <form> - <input type="submit" value="submit" /> + <input type="submit" value="submit" /> </form> \ No newline at end of file Modified: trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/widget1.html ============================================================================== --- trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/widget1.html (original) +++ trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/widget1.html Wed Jan 25 09:52:05 2012 @@ -1,3 +1,19 @@ +<!-- + Copyright (c) 2010, 2011 The Amdatu Foundation + + 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. +--> + <script type="text/javascript"> $(document).ready(function() { $('#docdialog').dialog({ Modified: trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/widget2.html ============================================================================== --- trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/widget2.html (original) +++ trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/widget2.html Wed Jan 25 09:52:05 2012 @@ -1,3 +1,19 @@ +<!-- + Copyright (c) 2010, 2011 The Amdatu Foundation + + 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. +--> + Different examples for the dashboard plugin: <ul> <li><a href="dashboard_minimal.html">Minimal dashboard</a></li> Modified: trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/widget3.html ============================================================================== --- trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/widget3.html (original) +++ trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/widget3.html Wed Jan 25 09:52:05 2012 @@ -1,3 +1,19 @@ +<!-- + Copyright (c) 2010, 2011 The Amdatu Foundation + + 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. +--> + <script type="text/javascript"> $(document).ready(function() { $("button").button(); Modified: trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/widget4.html ============================================================================== --- trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/widget4.html (original) +++ trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/widget4.html Wed Jan 25 09:52:05 2012 @@ -1 +1,17 @@ +<!-- + Copyright (c) 2010, 2011 The Amdatu Foundation + + 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. +--> + content 4 content 4 content 4 content 4 content 4 content 4 content 4 content 4 content 4 content 4 content 4 \ No newline at end of file Modified: trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/widget5.html ============================================================================== --- trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/widget5.html (original) +++ trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/demo/widgets/widget5.html Wed Jan 25 09:52:05 2012 @@ -1 +1,17 @@ +<!-- + Copyright (c) 2010, 2011 The Amdatu Foundation + + 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. +--> + content 5 content 5 content 5 content 5 content 5 content 5 content 5 content 5 content 5 content 5 content 5 \ No newline at end of file Modified: trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/js/dashboardmanager.js ============================================================================== --- trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/js/dashboardmanager.js (original) +++ trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/js/dashboardmanager.js Wed Jan 25 09:52:05 2012 @@ -1,3 +1,6 @@ +/*! Copyright (c) 2010, 2011 The Amdatu Foundation, http://amdatu.org + Licensed under the Apache License v2.0, see http://www.apache.org/licenses/LICENSE-2.0 */ + // DashboardManager which contains the dashboards var dashboardManager = function() { var dashboards = new Array(); @@ -42,7 +45,7 @@ // remove the dashboard from the dashboard array var idx = dashboards.indexOf(getDashboard(id)); var isSelectedDb = selectedDashboard.id = id; - + if(idx!=-1) { dashboards.splice(idx, 1); } @@ -55,13 +58,13 @@ // remove the cookie dashboardPreferencesManager.setValue('db_' + id, ''); - + // throw the event for updating the dashboards $("#tabs").trigger('tabsUpdated'); } - + function getSelectedDashboard() { if (!selectedDashboard) { // make the first one the selected @@ -83,7 +86,7 @@ $("#tabs").trigger('tabsUpdated'); // update the tab - $('#tablist').find('a[href=#tabs-' + db.id + ']').find('span').text(name); + $('#tablist').find('a[href=#tabs-' + db.id + ']').find('span').text(name); } // Public methods and variables. Modified: trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/js/dashboardpreferencesmanager.js ============================================================================== --- trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/js/dashboardpreferencesmanager.js (original) +++ trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/js/dashboardpreferencesmanager.js Wed Jan 25 09:52:05 2012 @@ -1,11 +1,14 @@ -// This is a cookie implementation, but this can also be replaced by a serverside implementation +/*! Copyright (c) 2010, 2011 The Amdatu Foundation, http://amdatu.org + Licensed under the Apache License v2.0, see http://www.apache.org/licenses/LICENSE-2.0 */ + + // This is a cookie implementation, but this can also be replaced by a serverside implementation var dashboardPreferencesManager = function() { var user = {}; function getValue(property, callback) { var cookieValue = $.cookie(property); - + user.property = cookieValue; if (typeof callback != 'undefined') { @@ -17,7 +20,7 @@ function setValue(property, value, callback) { // add it to the clientside object user[property] = value; - + $.cookie(property, value); if (typeof callback != 'undefined') { callback.call(); Modified: trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/js/jquery.dashboard.js ============================================================================== --- trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/js/jquery.dashboard.js (original) +++ trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/js/jquery.dashboard.js Wed Jan 25 09:52:05 2012 @@ -1,14 +1,5 @@ -/* - * dashboard 1.0 - * http://www.gxdeveloperweb.com/dashboard/ - * - * Copyright (c) 2010 Mark Machielsen - * - * Dual licensed under the MIT and GPL licenses (same as jQuery): - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html - * - */ +/*! Copyright (c) 2010, 2011 The Amdatu Foundation, http://amdatu.org + Licensed under the Apache License v2.0, see http://www.apache.org/licenses/LICENSE-2.0 */ (function($) { // Create closure. Modified: trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/js/jquery.metadata.js ============================================================================== --- trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/js/jquery.metadata.js (original) +++ trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/js/jquery.metadata.js Wed Jan 25 09:52:05 2012 @@ -1,7 +1,7 @@ /* * Metadata - jQuery plugin for parsing metadata from elements * - * Copyright (c) 2006 John Resig, Yehuda Katz, J�örn Zaefferer, Paul McLanahan + * Copyright (c) 2006 John Resig, Yehuda Katz, J�rn Zaefferer, Paul McLanahan * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php @@ -18,35 +18,35 @@ * There are four supported types of metadata storage: * * attr: Inside an attribute. The name parameter indicates *which* attribute. - * + * * class: Inside the class attribute, wrapped in curly braces: { } - * + * * elem: Inside a child element (e.g. a script tag). The * name parameter indicates *which* element. * html5: Values are stored in data-* attributes. - * + * * The metadata for an element is loaded the first time the element is accessed via jQuery. * * As a result, you can define the metadata type, use $(expr) to load the metadata into the elements * matched by expr, then redefine the metadata type and run another $(expr) for other elements. - * + * * @name $.metadata.setType * * @example <p id="one" class="some_class {item_id: 1, item_label: 'Label'}">This is a p</p> * @before $.metadata.setType("class") * @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label" * @desc Reads metadata from the class attribute - * + * * @example <p id="one" class="some_class" data="{item_id: 1, item_label: 'Label'}">This is a p</p> * @before $.metadata.setType("attr", "data") * @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label" * @desc Reads metadata from a "data" attribute - * + * * @example <p id="one" class="some_class"><script>{item_id: 1, item_label: 'Label'}</script>This is a p</p> * @before $.metadata.setType("elem", "script") * @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label" * @desc Reads metadata from a nested script element - * + * * @example <p id="one" class="some_class" data-item_id="1" data-item_label="Label">This is a p</p> * @before $.metadata.setType("html5") * @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label" @@ -78,28 +78,28 @@ var settings = $.extend({},this.defaults,opts); // check for empty string in single property if ( !settings.single.length ) settings.single = 'metadata'; - + var data = $.data(elem, settings.single); // returned cached data if it already exists if ( data ) return data; - + data = "{}"; - + var getData = function(data) { if(typeof data != "string") return data; - + if( data.indexOf('{') < 0 ) { data = eval("(" + data + ")"); } } - + var getObject = function(data) { if(typeof data != "string") return data; - + data = eval("(" + data + ")"); return data; } - + if ( settings.type == "html5" ) { var object = {}; $( elem.attributes ).each(function() { @@ -125,7 +125,7 @@ } object = getObject(data.indexOf("{") < 0 ? "{" + data + "}" : data); } - + $.data( elem, settings.single, object ); return object; } Modified: trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/js/themeroller.js ============================================================================== --- trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/js/themeroller.js (original) +++ trunk/amdatu-opensocial/dashboard-plugin/src/main/resources/static/js/themeroller.js Wed Jan 25 09:52:05 2012 @@ -1,5 +1,6 @@ -/* jQuery plugin themeswitcher ----------------------------------------------------------------------*/ +/*! Copyright (c) 2010, 2011 The Amdatu Foundation, http://amdatu.org + Licensed under the Apache License v2.0, see http://www.apache.org/licenses/LICENSE-2.0 */ + $.fn.themeswitcher = function(settings){ var options = jQuery.extend({ loadTheme: null,
_______________________________________________ Amdatu-commits mailing list [email protected] http://lists.amdatu.org/mailman/listinfo/amdatu-commits
