Sha256: aed2c38c84c12c97aa3c229560474da3d13bef1a9b0a9f9f61f4964a7ac469ae

Contents?: true

Size: 953 Bytes

Versions: 16

Compression:

Stored size: 953 Bytes

Contents

// initialize your global object will all your model names
//YOUR_APP = {
//
//};

var $main_content;

var fLoadingShow = function () {
    $("body").append($('<div id="loading"></div>'));
};

var fLoadingHide = function () {
    $("#loading").remove();
};

//jQuery(document).ready(function ($) {
//    get the page action
    //var action, model, b = $("body");
    //if (b.hasClass("edit")) {
    //    action = "edit";
    //} else if (b.hasClass("view")) {
    //    action = "view";
    //} else if (b.hasClass("index")) {
    //    action = "index"
    //} else if (b.hasClass("new")) {
    //    action = "new"
    //}
    //
    //run the code specific to a model and an action
    //for (var m in YOUR_APP) {
    //    if (b.hasClass("admin_" + m)) {
    //        if (YOUR_APP[m][action] && typeof YOUR_APP[m][action] == "function") {
    //            YOUR_APP[m][action]();
    //            break;
    //        }
    //    }
    //}
//});

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
c80_estate-0.1.0.39 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.38 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.37 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.36 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.35 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.34 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.33 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.32 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.31 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.30 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.29 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.28 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.27 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.26 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.25 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.24 app/assets/javascript/c80_estate/backend/init.js