Sha256: ac49f29eca61a3e6c96da02ab35d1833829c6f839eb153cec3b1568a0be4b8c9

Contents?: true

Size: 933 Bytes

Versions: 24

Compression:

Stored size: 933 Bytes

Contents

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

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

24 entries across 24 versions & 1 rubygems

Version Path
c80_estate-0.1.0.23 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.22 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.21 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.20 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.19 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.18 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.17 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.16 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.15 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.14 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.13 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.12 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.11 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.10 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.9 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.8 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.7 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.6 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.5 app/assets/javascript/c80_estate/backend/init.js
c80_estate-0.1.0.4 app/assets/javascript/c80_estate/backend/init.js