Subversion Repositories SmartDukaan

Rev

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

Rev 27755 Rev 29209
Line 167... Line 167...
167
			loadPaginatedNextItems('/getPaginatedAuthUser', null,
167
			loadPaginatedNextItems('/getPaginatedAuthUser', null,
168
				'authUsers-paginated', 'auth-user-table',
168
				'authUsers-paginated', 'auth-user-table',
169
				'auth-user-details-container');
169
				'auth-user-details-container');
170
			$(this).blur();
170
			$(this).blur();
171
		});
171
		});
-
 
172
	$(document).on('click', ".add-manager",
-
 
173
			function() {
-
 
174
		var row = $(this).closest("tr");
-
 
175
		
-
 
176
		var authId = $(this).data("id");
-
 
177
		console.log("authId"+authId);
-
 
178
		
-
 
179
		var managerId = $(row).find("#auth-users option:selected").val();
-
 
180
		
-
 
181
		console.log("managerId"+managerId);
-
 
182
		
-
 
183
		doPostAjaxRequestHandler(context + "/addManagerId?authId="
-
 
184
				+ authId + "&managerId=" +  managerId, function(response) {
-
 
185
					if (response == "true") {
-
 
186
						alert("Add Manager Successfully");
-
 
187
						loadAddAuthUser("main-content");
-
 
188
					}
-
 
189
				});
-
 
190
		
-
 
191
			});
172
 
192
 
173
	$(document).on('click', "#authUsers-paginated .previous",
193
	$(document).on('click', "#authUsers-paginated .previous",
174
		function() {
194
		function() {
175
 
195
 
176
			loadPaginatedPreviousItems('/getPaginatedAuthUser', null,
196
			loadPaginatedPreviousItems('/getPaginatedAuthUser', null,
Line 184... Line 204...
184
function loadChangeAuthUserPassword(domId) {
204
function loadChangeAuthUserPassword(domId) {
185
	doGetAjaxRequestHandler(context + "/changePassword", function(response) {
205
	doGetAjaxRequestHandler(context + "/changePassword", function(response) {
186
		$('#' + domId).html(response);
206
		$('#' + domId).html(response);
187
	});
207
	});
188
}
208
}
-
 
209
 
-
 
210
 
-
 
211
 
189
function changeAuthUserPassword(oldPassword, newPassword) {
212
function changeAuthUserPassword(oldPassword, newPassword) {
190
	var params = {
213
	var params = {
191
		"oldPassword": oldPassword,
214
		"oldPassword": oldPassword,
192
		"newPassword": newPassword
215
		"newPassword": newPassword
193
	}
216
	}