Subversion Repositories SmartDukaan

Rev

Rev 36785 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 36785 Rev 37494
Line 150... Line 150...
150
		</div>
150
		</div>
151
	</div>
151
	</div>
152
</section>
152
</section>
153
 
153
 
154
<script>
154
<script>
-
 
155
	// Fragment is re-injected with .html(), which re-runs this script; clear the
-
 
156
	// namespace first so handlers replace rather than stack (one click would
-
 
157
	// otherwise fire N identical requests and be rejected as duplicates).
-
 
158
	$(document).off('.bpbulk');
155
	$(document).on('click', '.beat-bulk-submit', function () {
159
	$(document).on('click.bpbulk', '.beat-bulk-submit', function () {
156
		var fileInput = document.getElementById('beat-bulk-file');
160
		var fileInput = document.getElementById('beat-bulk-file');
157
		if (!fileInput.files || !fileInput.files[0]) {
161
		if (!fileInput.files || !fileInput.files[0]) {
158
			alert('Please select an XLSX file');
162
			alert('Please select an XLSX file');
159
			return;
163
			return;
160
		}
164
		}