Subversion Repositories SmartDukaan

Rev

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

Rev 35039 Rev 36074
Line 123... Line 123...
123
                                </tbody>
123
                                </tbody>
124
 
124
 
125
                            </table>
125
                            </table>
126
                        </div>
126
                        </div>
127
                        <div id="ooStock" class="tab-pane fade">
127
                        <div id="ooStock" class="tab-pane fade">
-
 
128
                            <div style="margin-bottom: 10px;">
-
 
129
                                <input type="text" id="oosInput" placeholder="Search transactions..."
-
 
130
                                       style="width: 98%;margin-top: 10px; padding: 5px;">
-
 
131
                            </div>
128
                            <table class="table table-bordered" id="ooStransactionList">
132
                            <table class="table table-bordered" id="ooStransactionList">
129
                                <thead>
133
                                <thead>
130
                                <tr>
134
                                <tr>
131
                                    <th>Txn Id</th>
135
                                    <th>Txn Id</th>
132
                                    <th>Retailer Name</th>
136
                                    <th>Retailer Name</th>
Line 217... Line 221...
217
            var value = $(this).val().toLowerCase();
221
            var value = $(this).val().toLowerCase();
218
            $("#transactionList tr").filter(function () {
222
            $("#transactionList tr").filter(function () {
219
                $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
223
                $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
220
            });
224
            });
221
        });
225
        });
-
 
226
        $("#oosInput").on("keyup", function () {
-
 
227
            var value = $(this).val().toLowerCase();
-
 
228
            $("#ooStransactionList tr").filter(function () {
-
 
229
                $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
-
 
230
            });
-
 
231
        });
222
    });
232
    });
223
</script>
233
</script>
224
234