| 1 | /*
|
|---|
| 2 | Ext JS 4.1 - JavaScript Library
|
|---|
| 3 | Copyright (c) 2006-2012, Sencha Inc.
|
|---|
| 4 | All rights reserved.
|
|---|
| 5 | licensing@sencha.com
|
|---|
| 6 |
|
|---|
| 7 | http://www.sencha.com/license
|
|---|
| 8 |
|
|---|
| 9 | Open Source License
|
|---|
| 10 | ------------------------------------------------------------------------------------------
|
|---|
| 11 | This version of Ext JS is licensed under the terms of the Open Source GPL 3.0 license.
|
|---|
| 12 |
|
|---|
| 13 | http://www.gnu.org/licenses/gpl.html
|
|---|
| 14 |
|
|---|
| 15 | There are several FLOSS exceptions available for use with this release for
|
|---|
| 16 | open source applications that are distributed under a license other than GPL.
|
|---|
| 17 |
|
|---|
| 18 | * Open Source License Exception for Applications
|
|---|
| 19 |
|
|---|
| 20 | http://www.sencha.com/products/floss-exception.php
|
|---|
| 21 |
|
|---|
| 22 | * Open Source License Exception for Development
|
|---|
| 23 |
|
|---|
| 24 | http://www.sencha.com/products/ux-exception.php
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 | Alternate Licensing
|
|---|
| 28 | ------------------------------------------------------------------------------------------
|
|---|
| 29 | Commercial and OEM Licenses are available for an alternate download of Ext JS.
|
|---|
| 30 | This is the appropriate option if you are creating proprietary applications and you are
|
|---|
| 31 | not prepared to distribute and share the source code of your application under the
|
|---|
| 32 | GPL v3 license. Please visit http://www.sencha.com/license for more details.
|
|---|
| 33 |
|
|---|
| 34 | --
|
|---|
| 35 |
|
|---|
| 36 | This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT OF THIRD-PARTY INTELLECTUAL PROPERTY RIGHTS. See the GNU General Public License for more details.
|
|---|
| 37 | */
|
|---|
| 38 | /*
|
|---|
| 39 | Ext JS 4.1 - JavaScript Library
|
|---|
| 40 | Copyright (c) 2006-2012, Sencha Inc.
|
|---|
| 41 | All rights reserved.
|
|---|
| 42 | licensing@sencha.com
|
|---|
| 43 |
|
|---|
| 44 | http://www.sencha.com/license
|
|---|
| 45 |
|
|---|
| 46 | Open Source License
|
|---|
| 47 | ------------------------------------------------------------------------------------------
|
|---|
| 48 | This version of Ext JS is licensed under the terms of the Open Source GPL 3.0 license.
|
|---|
| 49 |
|
|---|
| 50 | http://www.gnu.org/licenses/gpl.html
|
|---|
| 51 |
|
|---|
| 52 | There are several FLOSS exceptions available for use with this release for
|
|---|
| 53 | open source applications that are distributed under a license other than GPL.
|
|---|
| 54 |
|
|---|
| 55 | * Open Source License Exception for Applications
|
|---|
| 56 |
|
|---|
| 57 | http://www.sencha.com/products/floss-exception.php
|
|---|
| 58 |
|
|---|
| 59 | * Open Source License Exception for Development
|
|---|
| 60 |
|
|---|
| 61 | http://www.sencha.com/products/ux-exception.php
|
|---|
| 62 |
|
|---|
| 63 |
|
|---|
| 64 | Alternate Licensing
|
|---|
| 65 | ------------------------------------------------------------------------------------------
|
|---|
| 66 | Commercial and OEM Licenses are available for an alternate download of Ext JS.
|
|---|
| 67 | This is the appropriate option if you are creating proprietary applications and you are
|
|---|
| 68 | not prepared to distribute and share the source code of your application under the
|
|---|
| 69 | GPL v3 license. Please visit http://www.sencha.com/license for more details.
|
|---|
| 70 |
|
|---|
| 71 | --
|
|---|
| 72 |
|
|---|
| 73 | This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT OF THIRD-PARTY INTELLECTUAL PROPERTY RIGHTS. See the GNU General Public License for more details.
|
|---|
| 74 | */
|
|---|
| 75 | /*
|
|---|
| 76 | Ext JS 4.1 - JavaScript Library
|
|---|
| 77 | Copyright (c) 2006-2012, Sencha Inc.
|
|---|
| 78 | All rights reserved.
|
|---|
| 79 | licensing@sencha.com
|
|---|
| 80 |
|
|---|
| 81 | http://www.sencha.com/license
|
|---|
| 82 |
|
|---|
| 83 | Open Source License
|
|---|
| 84 | ------------------------------------------------------------------------------------------
|
|---|
| 85 | This version of Ext JS is licensed under the terms of the Open Source GPL 3.0 license.
|
|---|
| 86 |
|
|---|
| 87 | http://www.gnu.org/licenses/gpl.html
|
|---|
| 88 |
|
|---|
| 89 | There are several FLOSS exceptions available for use with this release for
|
|---|
| 90 | open source applications that are distributed under a license other than GPL.
|
|---|
| 91 |
|
|---|
| 92 | * Open Source License Exception for Applications
|
|---|
| 93 |
|
|---|
| 94 | http://www.sencha.com/products/floss-exception.php
|
|---|
| 95 |
|
|---|
| 96 | * Open Source License Exception for Development
|
|---|
| 97 |
|
|---|
| 98 | http://www.sencha.com/products/ux-exception.php
|
|---|
| 99 |
|
|---|
| 100 |
|
|---|
| 101 | Alternate Licensing
|
|---|
| 102 | ------------------------------------------------------------------------------------------
|
|---|
| 103 | Commercial and OEM Licenses are available for an alternate download of Ext JS.
|
|---|
| 104 | This is the appropriate option if you are creating proprietary applications and you are
|
|---|
| 105 | not prepared to distribute and share the source code of your application under the
|
|---|
| 106 | GPL v3 license. Please visit http://www.sencha.com/license for more details.
|
|---|
| 107 |
|
|---|
| 108 | --
|
|---|
| 109 |
|
|---|
| 110 | This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT OF THIRD-PARTY INTELLECTUAL PROPERTY RIGHTS. See the GNU General Public License for more details.
|
|---|
| 111 | */
|
|---|
| 112 | /*
|
|---|
| 113 | This file is part of Ext JS 4.1
|
|---|
| 114 |
|
|---|
| 115 | Copyright (c) 2011-2012 Sencha Inc
|
|---|
| 116 |
|
|---|
| 117 | Contact: http://www.sencha.com/contact
|
|---|
| 118 |
|
|---|
| 119 | GNU General Public License Usage
|
|---|
| 120 | This file may be used under the terms of the GNU General Public License version 3.0 as
|
|---|
| 121 | published by the Free Software Foundation and appearing in the file LICENSE included in the
|
|---|
| 122 | packaging of this file.
|
|---|
| 123 |
|
|---|
| 124 | Please review the following information to ensure the GNU General Public License version 3.0
|
|---|
| 125 | requirements will be met: http://www.gnu.org/copyleft/gpl.html.
|
|---|
| 126 |
|
|---|
| 127 | If you are unsure which license is appropriate for your use, please contact the sales department
|
|---|
| 128 | at http://www.sencha.com/contact.
|
|---|
| 129 |
|
|---|
| 130 | Build date: 2012-07-04 21:11:01 (65ff594cd80b9bad45df640c22cc0adb52c95a7b)
|
|---|
| 131 | */
|
|---|
| 132 | /**
|
|---|
| 133 | * Load the library located at the same path with this file
|
|---|
| 134 | *
|
|---|
| 135 | * Will automatically load ext-all-dev.js if any of these conditions is true:
|
|---|
| 136 | * - Current hostname is localhost
|
|---|
| 137 | * - Current hostname is an IP v4 address
|
|---|
| 138 | * - Current protocol is "file:"
|
|---|
| 139 | *
|
|---|
| 140 | * Will load ext-all.js (minified) otherwise
|
|---|
| 141 | */
|
|---|
| 142 | (function() {
|
|---|
| 143 | var scripts = document.getElementsByTagName('script'),
|
|---|
| 144 | localhostTests = [
|
|---|
| 145 | /^localhost$/,
|
|---|
| 146 | /\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(:\d{1,5})?\b/ // IP v4
|
|---|
| 147 | ],
|
|---|
| 148 | host = window.location.hostname,
|
|---|
| 149 | isDevelopment = null,
|
|---|
| 150 | queryString = window.location.search,
|
|---|
| 151 | test, path, i, ln, scriptSrc, match;
|
|---|
| 152 |
|
|---|
| 153 | for (i = 0, ln = scripts.length; i < ln; i++) {
|
|---|
| 154 | scriptSrc = scripts[i].src;
|
|---|
| 155 |
|
|---|
| 156 | match = scriptSrc.match(/bootstrap\.js$/);
|
|---|
| 157 |
|
|---|
| 158 | if (match) {
|
|---|
| 159 | path = scriptSrc.substring(0, scriptSrc.length - match[0].length);
|
|---|
| 160 | break;
|
|---|
| 161 | }
|
|---|
| 162 | }
|
|---|
| 163 |
|
|---|
| 164 | if (queryString.match('(\\?|&)debug') !== null) {
|
|---|
| 165 | isDevelopment = true;
|
|---|
| 166 | }
|
|---|
| 167 | else if (queryString.match('(\\?|&)nodebug') !== null) {
|
|---|
| 168 | isDevelopment = false;
|
|---|
| 169 | }
|
|---|
| 170 |
|
|---|
| 171 | if (isDevelopment === null) {
|
|---|
| 172 | for (i = 0, ln = localhostTests.length; i < ln; i++) {
|
|---|
| 173 | test = localhostTests[i];
|
|---|
| 174 |
|
|---|
| 175 | if (host.search(test) !== -1) {
|
|---|
| 176 | isDevelopment = true;
|
|---|
| 177 | break;
|
|---|
| 178 | }
|
|---|
| 179 | }
|
|---|
| 180 | }
|
|---|
| 181 |
|
|---|
| 182 | if (isDevelopment === null && window.location.protocol === 'file:') {
|
|---|
| 183 | isDevelopment = true;
|
|---|
| 184 | }
|
|---|
| 185 |
|
|---|
| 186 | document.write('<script type="text/javascript" charset="UTF-8" src="' +
|
|---|
| 187 | path + 'ext-all' + (isDevelopment ? '-dev' : '') + '.js"></script>');
|
|---|
| 188 | })();
|
|---|