Correction on search. javascript and display result list with npo results V00.07
authorymh <ymh.work@gmail.com>
Wed, 12 May 2010 15:21:39 +0200
changeset 132 646c59d77cc9
parent 131 7f75650ef59d
child 133 81c6a28457a5
Correction on search. javascript and display result list with npo results
web/thdProject/apps/frontend/modules/partials/templates/_filmItem.php
web/thdProject/apps/frontend/modules/search/templates/viewSearchListSuccess.php
web/thdProject/web/js/uc.common.js
--- a/web/thdProject/apps/frontend/modules/partials/templates/_filmItem.php	Wed May 12 13:31:26 2010 +0200
+++ b/web/thdProject/apps/frontend/modules/partials/templates/_filmItem.php	Wed May 12 15:21:39 2010 +0200
@@ -10,7 +10,7 @@
   <div class="infos">
     <a href="<?php echo $actionUri; ?>" class="title" target="_top"><?php echo $film->getTitle(); ?></a> <span class="film-infos">De <?php echo thd_render_flat_list($film->getDirectorsArray(), 'name'); ?></span>
   </div>
-  <img src="<?php echo image_path('buttons/btn_play.png'); ?>"/ class="play-button"></a>
+  <img src="<?php echo image_path('buttons/btn_play.png'); ?>" class="play-button"/>
   <?php if ($tagCloud): ?>
   <div class="tags">
     <ul class="item-list tag-list">
--- a/web/thdProject/apps/frontend/modules/search/templates/viewSearchListSuccess.php	Wed May 12 13:31:26 2010 +0200
+++ b/web/thdProject/apps/frontend/modules/search/templates/viewSearchListSuccess.php	Wed May 12 15:21:39 2010 +0200
@@ -1,6 +1,6 @@
 <?php slot('sideBar'); ?>
 <?php 
-include_component( 'search', 'sideBar', (isset($selectedFilm )&&!is_array($selectedFilm))?array("film"=>$selectedFilm):null);
+include_component( 'search', 'sideBar', (isset($selectedFilm )&&!is_array($selectedFilm))?array("film"=>$selectedFilm):array());
 ?>
 <?php end_slot(); ?>
 <?php
--- a/web/thdProject/web/js/uc.common.js	Wed May 12 13:31:26 2010 +0200
+++ b/web/thdProject/web/js/uc.common.js	Wed May 12 15:21:39 2010 +0200
@@ -40,6 +40,12 @@
 		var help = jq_this.val();
 		jq_this.focus(function() {if (jq_this.val() == help) jq_this.val('');});
 		jq_this.blur(function() {if (jq_this.val() == '') jq_this.val(help);});
+		
+		var form = jq_this.parents("form:eq(0)");
+		if(form) {
+			form.submit(function() {if (jq_this.val() == help) return false; else return jq_this.val().length!=0;});
+		}
+		
 	});
 
 });