Subversion Repository Public Repository

Nextrek

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//jQuery styleTable
/*(function ($) {
    $.fn.styleTable = function (options) {
        var defaults = {
            css: 'ui-styled-table'
        };
        options = $.extend(defaults, options);

        return this.each(function () {
            $this = $(this);
            $this.addClass(options.css);

            $this.on('mouseover mouseout', 'tbody tr', function (event) {
                $(this).children().toggleClass("ui-state-hover",
                                               event.type == 'mouseover');
            });

            $this.find("th").addClass("ui-state-default");
            $this.find("td").addClass("ui-widget-content");
            $this.find("tr:last-child").addClass("last-child");
        });
    };
})(jQuery);*/


function getHtmlPage(file, callback) {
	$.ajax({
		url: file,
		success: callback
	});
}

function isEmpty( el ){
	return !$.trim(el.html())
}

Commits for Nextrek/Android/SmartCharging/endPoints/nightly/control_panel/js/utilities.js

Diff revisions: vs.
Revision Author Commited Message
587 Diff Diff FSallustio picture FSallustio Thu 27 Aug, 2015 13:28:12 +0000
586 FSallustio picture FSallustio Thu 27 Aug, 2015 10:32:34 +0000