Subversion Repositories SmartDukaan

Rev

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

Rev 8639 Rev 10922
Line 13... Line 13...
13
p { clear: both; }
13
p { clear: both; }
14
.submit { margin-left: 12em; }
14
.submit { margin-left: 12em; }
15
em { font-weight: bold; padding-right: 1em; vertical-align: top; }
15
em { font-weight: bold; padding-right: 1em; vertical-align: top; }
16
ul { padding-left: 13px;}
16
ul { padding-left: 13px;}
17
td{background-color:#B0BED9};
17
td{background-color:#B0BED9};
-
 
18
.diffColor {
-
 
19
    background: grey;
-
 
20
}
18
</style>
21
</style>
19
<style>
22
<style>
20
.loading-image {
23
.loading-image {
21
position: fixed;
24
position: fixed;
22
top: 50%;
25
top: 50%;
Line 64... Line 67...
64
    });
67
    });
65
	$("#search_item").live('click', function() {
68
	$("#search_item").live('click', function() {
66
		var searchText = $('#search_text').val();
69
		var searchText = $('#search_text').val();
67
		loadSearchInfo(searchText);
70
		loadSearchInfo(searchText);
68
    });
71
    });
-
 
72
	
-
 
73
	$("#search_text").keyup(function(event){
-
 
74
    	if(event.keyCode == 13){
-
 
75
        	$("#search_item").click();
-
 
76
    	}
-
 
77
	});
-
 
78
	
69
	$(".editItem").live('click', function() {
79
	$(".editItem").live('click', function() {
-
 
80
		$("tr").removeClass("diffColor");
-
 
81
		$("td").css("background-color","")
-
 
82
        $(this).parents("tr").addClass("diffColor");
-
 
83
		$('tr.diffColor').children('td').css('backgroundColor', '#7F98FA');
70
		var itemId = $(this).attr('itemid')
84
		var itemId = $(this).attr('itemid')
71
		loadItemDetails("/Support/amazon-list/"+ itemId +"/edit");
85
		loadItemDetails("/Support/amazon-list/"+ itemId +"/edit");
72
    });
86
    });
73
});
87
});
74
</script>
88
</script>
Line 140... Line 154...
140
        complete: function(){
154
        complete: function(){
141
        $('#ajax-spinner').hide();
155
        $('#ajax-spinner').hide();
142
        },
156
        },
143
        success : function(response) {
157
        success : function(response) {
144
            $('#' + 'amazon-table').html(response);
158
            $('#' + 'amazon-table').html(response);
-
 
159
			$('#' + 'item-details').html('');
145
			$('.valueEnd').text(10);
160
			$('.valueEnd').text(10);
146
			$('.valueStart').text(1);
161
			$('.valueStart').text(1);
147
			$(".previous").css("display", "none");
162
			$(".previous").css("display", "none");
148
			$(".next").css("display", "");
163
			$(".next").css("display", "");
149
			var temp = $('.totalValue').text();
164
			var temp = $('.totalValue').text();
Line 187... Line 202...
187
}
202
}
188
</script>
203
</script>
189
<script type="text/javascript">
204
<script type="text/javascript">
190
$(function(){	
205
$(function(){	
191
$("#amazon-form").live('submit', function(){
206
$("#amazon-form").live('submit', function(){
192
	alert("uploading data");
-
 
193
    var data = $(this).serialize() 
207
    var data = $(this).serialize() 
194
 
208
 
195
    jQuery.ajax({
209
    jQuery.ajax({
196
        url: "/Support/amazon-list!update",
210
        url: "/Support/amazon-list!update",
197
        type: 'POST',
211
        type: 'POST',
Line 220... Line 234...
220
</script>
234
</script>
221
<title>Amazon Listed Items</title>
235
<title>Amazon Listed Items</title>
222
</head>
236
</head>
223
<body>
237
<body>
224
	<div style="padding: 20px 0px;">
238
	<div style="padding: 20px 0px;">
-
 
239
	   <a style="padding-left: 10px;" href="/Support/amazon-list/options">Back</a>
225
       <a style="padding-left: 10px;" href="/Support/logout">Logout</a>
240
       <a style="padding-left: 10px;" href="/Support/logout">Logout</a>
226
	   <input type="submit" id="search_item" value="Search" style="float: right;width:8%;">
241
	   <input type="submit" id="search_item" value="Search" style="float: right;width:8%;">
227
	   <input id="search_text" style="float: right;width:10%;">
242
	   <input id="search_text" style="float: right;width:10%;">
228
</div>
243
</div>
229
<div>
244
<div>