Subversion Repositories SmartDukaan

Rev

Rev 3550 | Rev 4126 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3550 Rev 3830
Line 146... Line 146...
146
  });
146
  });
147
  $("#research_delete").live('click', function(){var research_tot = $("#research_total").val();
147
  $("#research_delete").live('click', function(){var research_tot = $("#research_total").val();
148
    var seldata=[];
148
    var seldata=[];
149
	var tot = 0;
149
	var tot = 0;
150
	var saprt = "";
150
	var saprt = "";
151
	var containerdiv = "#pane1";
-
 
152
	var par = containerdiv + " input[type=checkbox]:checked";
151
	var par = $('#myresearch').find('input[type=checkbox]:checked');
153
 
152
 
154
	$(par).each(function(){
153
	$(par).each(function(){
155
		seldata.unshift($(this).val());
154
		seldata.unshift($(this).val());
156
		tot ++;
155
		tot ++;
157
	});
156
	});
Line 164... Line 163...
164
			type: "GET",
163
			type: "GET",
165
			url: "/deletefromresearch/[" + seldata + "]?_method=delete",
164
			url: "/deletefromresearch/[" + seldata + "]?_method=delete",
166
			success: function(msg){
165
			success: function(msg){
167
				jQuery.each(seldata, function(intIndex, objValue){
166
				jQuery.each(seldata, function(intIndex, objValue){
168
					delete_from_storage_set("resitems", objValue);
167
					delete_from_storage_set("resitems", objValue);
169
					$("#pane1").find("#" + objValue).fadeOut('slow', function() {
168
					$("#myresearch").find("#" + objValue).fadeOut('slow', function() {
170
						$(this).remove();
169
						$(this).remove();
171
						if(t === 0)	{
170
						if(t === 0)	{
172
							$("#research_default").css("display", "block");
171
							$("#research_default").css("display", "block");
173
						}
172
						}
174
					});
173
					});
Line 182... Line 181...
182
 
181
 
183
 $("#research_compare").live('click', function(){
182
 $("#research_compare").live('click', function(){
184
        var seldata = "";
183
        var seldata = "";
185
        var tot = 1;
184
        var tot = 1;
186
        var saprt = "";
185
        var saprt = "";
187
        var containerdiv = "#pane1";
-
 
188
        var par = containerdiv + " input[type=checkbox]:checked";
186
        var par = $('#myresearch').find('input[type=checkbox]:checked');
189
 
187
        
190
        $(par).each(function(){
188
        $(par).each(function(){
191
        		if(tot == 1){
189
        		if(tot == 1){
192
        			seldata +=  "p"+tot + "=" + $(this).val();
190
        			seldata +=  "p"+tot + "=" + $(this).val();
193
        		}else{
191
        		}else{
194
        			seldata +=  "&p"+tot + "=" + $(this).val();
192
        			seldata +=  "&p"+tot + "=" + $(this).val();