includes/clientside/static/enano-lib-basic.js
changeset 420 301f546688d1
parent 348 87e08a6e4fec
child 430 ec90736b9cb9
equal deleted inserted replaced
419:b8b4e38825db 420:301f546688d1
     8  *
     8  *
     9  * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
     9  * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
    10  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
    10  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
    11  *
    11  *
    12  * For more information about Enano, please visit http://enanocms.org/.
    12  * For more information about Enano, please visit http://enanocms.org/.
    13  * All of the code in these script files may be used freely so long as the above license block is displayed and your
    13  * Unless otherwise noted, all of the code in these script files may be used freely so long as the above license block
    14  * modified code is distributed under the GPL. See the page Special:About_Enano on this website for more information.
    14  * is displayed and your modified code is distributed in compliance with the GPL. See the special page "About Enano" on
       
    15  * this website for more information.
    15  */
    16  */
    16 
    17 
    17 if(typeof title != 'string')
    18 if(typeof title != 'string')
    18 {
    19 {
    19   alert('Uh-oh! The required dynamic (PHP-generated) Javascript variables don\'t seem to be available. Javascript is going to be seriously broken.');
    20   alert('Uh-oh! The required dynamic (PHP-generated) Javascript variables don\'t seem to be available. Javascript is going to be seriously broken.');
   262   script.type="text/javascript";
   263   script.type="text/javascript";
   263   script.src=scriptPath+"/includes/clientside/tinymce/tiny_mce.js";
   264   script.src=scriptPath+"/includes/clientside/tinymce/tiny_mce.js";
   264   head.appendChild(script);
   265   head.appendChild(script);
   265 }
   266 }
   266 
   267 
       
   268 // Do not remove the following comments, they are used by jsres.php.
       
   269 /*!START_INCLUDER*/
       
   270 
   267 // Start loading files
   271 // Start loading files
       
   272 // The string from the [ to the ] needs to be valid JSON, it's parsed by jsres.php.
   268 var thefiles = [
   273 var thefiles = [
       
   274   'dynano.js',
   269   'misc.js',
   275   'misc.js',
   270   'admin-menu.js',
   276   'admin-menu.js',
   271   'ajax.js',
   277   'ajax.js',
   272   'autocomplete.js',
   278   'autocomplete.js',
   273   'autofill.js',
   279   'autofill.js',
   278   'grippy.js',
   284   'grippy.js',
   279   'json.js',
   285   'json.js',
   280   'md5.js',
   286   'md5.js',
   281   'sliders.js',
   287   'sliders.js',
   282   'toolbar.js',
   288   'toolbar.js',
   283   'windows.js',
       
   284   'rijndael.js',
   289   'rijndael.js',
   285   'l10n.js',
   290   'l10n.js',
   286   'template-compiler.js',
   291   'template-compiler.js',
   287   'acl.js',
   292   'acl.js',
   288   'comments.js',
   293   'comments.js',
   289   'editor.js',
   294   'editor.js',
   290   'dynano.js',
       
   291   'flyin.js',
   295   'flyin.js',
   292   'paginate.js',
   296   'paginate.js',
   293   'pwstrength.js',
   297   'pwstrength.js',
   294   'SpryEffects.js',
   298   'SpryEffects.js',
   295   'loader.js'
   299   'loader.js'
   313   }
   317   }
   314   script.src=scriptPath+"/includes/clientside/static/"+thefiles[f];
   318   script.src=scriptPath+"/includes/clientside/static/"+thefiles[f];
   315   head.appendChild(script);
   319   head.appendChild(script);
   316 }
   320 }
   317 
   321 
       
   322 // Do not remove the following comment, it is used by jsres.php.
       
   323 /*!END_INCLUDER*/
       
   324 
   318 addOnloadHook(function() {
   325 addOnloadHook(function() {
   319   if ( $_REQUEST['do'] )
   326   if ( $_REQUEST['do'] )
   320   {
   327   {
   321     var act = $_REQUEST['do'];
   328     var act = $_REQUEST['do'];
   322     switch(act)
   329     switch(act)