Commit Graph

14 Commits

Author SHA1 Message Date
George Stephanis 55e0bb6302 Add some code comments. 2015-08-07 15:30:12 -04:00
George Stephanis bad9e9d3bd Reposition when autocomplete is triggered.
Also, instead of searching through the whole dom, only search in the
tbody.
2015-08-07 15:29:56 -04:00
George Stephanis 56dc05d80e Whitespace tweaks 2015-08-07 15:24:49 -04:00
George Stephanis 94618db86a Optimization: Don't use $.size(), use native Object.length instead. 2015-08-07 15:24:35 -04:00
George Stephanis 516977bd01 JSHint fixes.
The other advantage of splitting js out of php files — jshint can run
on it! :) :) :)
2015-08-07 12:10:01 -04:00
George Stephanis 69b6936d4d Don't constantly rescan the dom for tbody
We have a cached version of $tbody a level up.
2015-08-07 12:01:40 -04:00
George Stephanis 9ae32254f2 Swap `jQuery` to `$`
It’s more readable, and safe to do as we’ve aliased it back in the
enclosure.
2015-08-07 12:00:22 -04:00
George Stephanis c4768e5274 Migrate current_class from php to js 2015-08-07 11:58:16 -04:00
George Stephanis b030927590 Extract 'No Rows Selected' string 2015-08-07 11:58:02 -04:00
George Stephanis 4221c7be24 Extract the autocomplete for states and countries data.
Localize it!
2015-08-07 11:57:38 -04:00
George Stephanis 65eb16fe8a Migrate csv columns to localize script. 2015-08-07 11:47:39 -04:00
George Stephanis 974b337fbb Move js in from php template file. 2015-08-07 11:42:49 -04:00
George Stephanis b0a485a5e6 Change variable name to consistent `$tbody` 2015-08-07 11:41:59 -04:00
George Stephanis 64f48f8706 Rename and tweak how js is registered.
Thanks @claudiosmweb for the suggestion to match existing conventions.
2015-08-07 11:36:38 -04:00