------------------------------------------------------------
revno: 781
committer: Roger Martin <[email protected]>
branch nick: aikiframework
timestamp: Sun 2011-06-05 21:40:28 +0200
message:
  ajax call adapted 0.9 guidelines
modified:
  src/assets/apps/admin/control_panel.js
  src/assets/javascript/aiki.js
  src/system/libraries/aiki_array.php


--
lp:aikiframework
https://code.launchpad.net/~aikiframework-devel/aikiframework/trunk

Your team Aiki Framework Developers is subscribed to branch lp:aikiframework.
To unsubscribe from this branch go to 
https://code.launchpad.net/~aikiframework-devel/aikiframework/trunk/+edit-subscription
=== modified file 'src/assets/apps/admin/control_panel.js'
--- src/assets/apps/admin/control_panel.js	2011-06-05 08:23:25 +0000
+++ src/assets/apps/admin/control_panel.js	2011-06-05 19:40:28 +0000
@@ -318,6 +318,7 @@
 				
 				code_mirror();
 				code_mirror_if_authorized();
+                
 				$('form.edit_form').ajaxForm(function() { 
 					
 					stop = 0;

=== modified file 'src/assets/javascript/aiki.js'
--- src/assets/javascript/aiki.js	2011-06-05 08:23:25 +0000
+++ src/assets/javascript/aiki.js	2011-06-05 19:40:28 +0000
@@ -27,21 +27,18 @@
 $(document).ready(function(){
 
 	$('a').live('click', function() {
-		if($(this).attr('rel') ){
-          if ($(this).attr('href')){
-            if ($(this).attr('rev')) {
+		if( $(this).attr('rel') &&  $(this).attr('href') && $(this).attr('rev')) {
                 globalajaxify($(this).attr('href')+'?noheaders=true&noheaders=true&widget='+$(this).attr('rel'), $(this).attr('rev'));
-                return false;
-            }
-          }
+                return false;            
         }    
 	});
-	$('span').live('click', function() {
+	
+    $('span').live('click', function() {
 		if($(this).attr('rel') ) {
             if ($(this).attr('rev')) {
                 globalajaxify('?noheaders=true&noheaders=true&widget='+$(this).attr('rel'), $(this).attr('rev'));
                 return false;
             }
           }  
-		});
+	});
 });

=== modified file 'src/system/libraries/aiki_array.php'
--- src/system/libraries/aiki_array.php	2011-06-05 08:23:25 +0000
+++ src/system/libraries/aiki_array.php	2011-06-05 19:40:28 +0000
@@ -119,8 +119,7 @@
 		$i=0;
 		$y=0;
 
-		$html_form = "
-		<form method='post' id='edit_form' name='edit_form' action='$pageURL' class='edit_form' >";
+		$html_form = "\n<form method='post' id='edit_form' name='edit_form' action='$pageURL' class='edit_form' >";
 		foreach ( $settings as $setting_group )
 		{
 

_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp

Reply via email to