]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
JS views: enable syntax highlighting and add missing semicolons
authorSteve Clay <steve@mrclay.org>
Mon, 26 Nov 2012 21:28:07 +0000 (16:28 -0500)
committerSteve Clay <steve@mrclay.org>
Mon, 26 Nov 2012 21:28:07 +0000 (16:28 -0500)
views/default/js/admin.php
views/default/js/elgg.php
views/default/js/initialize_elgg.php
views/default/js/lightbox.php
views/default/js/walled_garden.php

index 5cefba5124598fa4402a80d54b4e9f1506286d4e..e8aa0d2edbc7ec3b0cdd8bc39e853786c7e12396 100644 (file)
@@ -4,8 +4,9 @@
  *
  * @since 1.8
  */
+
+if (0) { ?><script><?php }
 ?>
-//<script>
 elgg.provide('elgg.admin');
 
 elgg.admin.init = function () {
@@ -47,7 +48,7 @@ elgg.admin.init = function () {
 
        // admin notices delete ajax
        $('a.elgg-admin-notice').click(elgg.admin.deleteNotice);
-}
+};
 
 /**
  * Save the plugin order after a move event.
@@ -88,7 +89,7 @@ elgg.admin.editProfileField = function(value, settings) {
 
        elgg.action('profile/fields/edit', data);
        return value;
-}
+};
 
 /**
  * Save the plugin profile order after a move event.
@@ -104,7 +105,7 @@ elgg.admin.moveProfileField = function(e, ui) {
        elgg.action('profile/fields/reorder', {
                fieldorder: orderStr
        });
-}
+};
 
 /**
  * Fires the ajax action to delete the admin notice then hides the notice.
@@ -120,6 +121,6 @@ elgg.admin.deleteNotice = function(e) {
                        $container.slideUp('medium');
                }
        });
-}
+};
 
 elgg.register_hook_handler('init', 'system', elgg.admin.init, 1000);
\ No newline at end of file
index 6460e93d6ced39465e0d1681eba27357c2292a07..b82d98ce42e6d1914e4235f26b9d2cf6afbb1569 100644 (file)
@@ -50,6 +50,7 @@ foreach ($libs as $file) {
 /**
  * Set some values that are cacheable
  */
+if (0) { ?><script><?php }
 ?>
 
 elgg.version = '<?php echo get_version(); ?>';
index f8234f84f698a45305b0d2aefbc20a5d32d53e35..b45c3346382672f3e1fa31b7d89420e0c18c62a7 100644 (file)
@@ -3,6 +3,7 @@
  * Initialize Elgg's js lib with the uncacheable data
  */
 
+if (0) { ?><script><?php }
 ?>
 /**
  * Don't want to cache these -- they could change for every request
index c45d46098460d730432f5011d971d623dd00afa1..d2bceaf90de33e5d983c41258efc1a52906ce4df 100644 (file)
@@ -16,6 +16,7 @@
  * @todo add support for passing options: $('#myplugin-lightbox').elgg.ui.lightbox(options);
  */
 
+if (0) { ?><script><?php }
 ?>
 
 /**
index 99d05050595263bde733528c70b785868fa757f8..7a482fe23c92530f2c72505d9f6a06fd5c139878 100644 (file)
@@ -12,6 +12,7 @@ $cancel_button = elgg_view('input/button', array(
 ));
 $cancel_button = trim($cancel_button);
 
+if (0) { ?><script><?php }
 ?>
 
 elgg.provide('elgg.walled_garden');