carnival 0.0.55 → 0.0.56
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/carnival/admin.js +3 -3
- data/app/assets/javascripts/carnival/data_tables_functions.js +18 -2
- data/app/assets/javascripts/carnival/external/{jquery.noty.js → noty/jquery.noty.js} +45 -117
- data/app/assets/javascripts/carnival/external/{jquery.noty.layout.bottom.js → noty/layouts/bottom.js} +1 -1
- data/app/assets/javascripts/carnival/external/noty/layouts/bottomCenter.js +41 -0
- data/app/assets/javascripts/carnival/external/noty/layouts/bottomLeft.js +43 -0
- data/app/assets/javascripts/carnival/external/noty/layouts/bottomRight.js +43 -0
- data/app/assets/javascripts/carnival/external/noty/layouts/center.js +56 -0
- data/app/assets/javascripts/carnival/external/noty/layouts/centerLeft.js +61 -0
- data/app/assets/javascripts/carnival/external/noty/layouts/centerRight.js +61 -0
- data/app/assets/javascripts/carnival/external/noty/layouts/inline.js +31 -0
- data/app/assets/javascripts/carnival/external/noty/layouts/top.js +34 -0
- data/app/assets/javascripts/carnival/external/noty/layouts/topCenter.js +41 -0
- data/app/assets/javascripts/carnival/external/noty/layouts/topLeft.js +43 -0
- data/app/assets/javascripts/carnival/external/noty/layouts/topRight.js +43 -0
- data/app/assets/javascripts/carnival/external/noty/packaged/jquery.noty.packaged.js +1180 -0
- data/app/assets/javascripts/carnival/external/noty/packaged/jquery.noty.packaged.min.js +1 -0
- data/app/assets/javascripts/carnival/external/noty/promise.js +432 -0
- data/app/assets/javascripts/carnival/external/{jquery.noty.theme.default.js → noty/themes/default.js} +3 -3
- data/app/assets/javascripts/carnival/vizir_admin.js +0 -30
- data/app/assets/stylesheets/carnival/admin.css +0 -1
- data/app/assets/stylesheets/carnival/jquery.noty.css +17 -104
- data/app/assets/stylesheets/carnival/main.css +31 -3
- data/app/controllers/carnival/base_admin_controller.rb +15 -4
- data/app/datatable/carnival/generic_datatable.rb +23 -11
- data/app/helpers/carnival/base_admin_helper.rb +20 -3
- data/app/inputs/admin_enum_input.rb +5 -3
- data/app/inputs/admin_relationship_select_input.rb +17 -5
- data/app/models/carnival/admin_user.rb +2 -1
- data/app/models/carnival/field.rb +37 -1
- data/app/models/carnival/field.rb.orig +157 -0
- data/app/models/carnival/model_helper.rb +19 -3
- data/app/presenters/carnival/base_admin_presenter.rb +38 -6
- data/app/view_objects/carnival/nested_form_options.rb +135 -0
- data/app/views/carnival/base_admin/edit.html.haml +1 -1
- data/app/views/carnival/base_admin/index.html.haml +3 -3
- data/app/views/carnival/base_admin/load_dependent_select_options.html.haml +5 -0
- data/app/views/carnival/base_admin/new.html.haml +1 -1
- data/app/views/carnival/base_admin/show.html.haml +5 -2
- data/app/views/carnival/shared/_item_buttons.html.haml +1 -1
- data/app/views/carnival/shared/form/_field.html.haml +9 -1
- data/app/views/carnival/shared/form/_field.html.haml.orig +29 -0
- data/app/views/carnival/shared/form/_form.html.haml +64 -3
- data/app/views/carnival/shared/form/_inner_form.html.haml +1 -35
- data/app/views/carnival/shared/form/_nested_form.html.haml +20 -0
- data/app/views/carnival/shared/form/_nested_form_options.html.haml +29 -0
- data/app/views/carnival/shared/show/_show_as_list.html.haml +4 -0
- data/app/views/layouts/carnival/_menu.html.haml +6 -5
- data/config/locales/carnival.pt-br.yml +10 -6
- data/lib/carnival.rb +4 -0
- data/lib/carnival/config.rb +3 -1
- data/lib/carnival/routes.rb +2 -1
- data/lib/carnival/version.rb +1 -1
- data/lib/carnival/version.rb.orig +7 -0
- data/lib/generators/carnival/templates/carnival_initializer.rb +59 -48
- data/test/dummy/app/controllers/admin/people_controller.rb +1 -1
- data/test/dummy/app/controllers/admin/states_controller.rb +1 -1
- data/test/dummy/app/models/admin/city.rb +1 -0
- data/test/dummy/app/models/admin/state.rb +1 -0
- data/test/dummy/app/presenters/admin/person_presenter.rb +4 -2
- data/test/dummy/app/presenters/admin/state_presenter.rb +15 -5
- data/test/dummy/config/initializers/carnival_initializer.rb +7 -2
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/seeds.rb +15 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/bullet.log +366 -1094
- data/test/dummy/log/development.log +20675 -53911
- data/test/dummy/log/test.log +785 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/01c1d1cbb942f60130f0aa01d50c98d2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/02b691bcf7570e21acab45d320ac92cf +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/049c6f2079e2e93f96fd228df8c265ba +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0d9971c4a3b5017a7d2122508b66bb12 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0f7b5da581fb3730800607447951008a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{07e2c1c7f749a9d38b1649aec1d98730 → 1205c92fa474a4de8d08f2774c450103} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/141987f5d019e60604cd75d2e340942f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/147e4215ac96fd8b8d373567ae00ed47 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1634e1287a9914e738e710919b7cd6e4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/16c6027bc506317d8266573d0ae1b510 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/16e4094498947b5f36bfbb490b94d025 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2109e2acf993625dc0a3f05e7e0af523 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/21e89993e0f6f1b465e0de70e76b77f3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2684dad966b304ec2aee0149dc77c657 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2908a36318747c72030e94441a2579c4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{d3b5d5784361e5eb827fbcdb0332258f → 2a85e7b776e55125671b84c4ed5a9f56} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/30c8c2e6ca355103a267133f6b45b0ce +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/31177aaa32db75be241353c5819450b4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/31a6581dfe5a788b2b450403959a97c5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/32daf8a3bfd9da8ab261f5002f66389f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/33dfbc7bdde795abfd1031ceaa315dc8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{197f549b9c46ec6679bddac8e4065948 → 36ac7d3c94b129447c85c4abea55a674} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/39d34c0caaa6f36d684fac1898a7f88f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3a2fdd82041ab4b5ce8a082ec9b270fb +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{aaf9dac7bb02577a8005e39ca9225482 → 3aa40071fc24bbafb6d0d4d36b91be70} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3ac0f4fad0d3e6d3d13d4ed2189dcabe +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3d8100b6e405407290dcf994ef05e0b7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3f89739d959e11df6c20fa6ea13c1044 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3fd8a2a00bb4ebd69a3ecac257dbe536 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4423cb4765f66f187ffcb3be911c3600 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/44dd8eb9e41f4103d9f40dfd6b4ae2ae +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/45b86c586ed942b09cec2190b3c45c5a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/47ce692a80d5b075614c2489d7e3a142 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/499338aa610d84045d1a0f081960c6fc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4a7a4dcd9fea9bd2e287771c51f96631 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4bd7e9214a07840040d269fdbf523e97 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4c36f4196d9df171251bea6f3b587fe3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4e4b1f24c5e69f2f305f6d6483a1605c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5090d7ea741c7f63994eb7b62e757f8f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/536648929c703c8c5e964b502b2095ff +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{b632a78e3341b622d2afbcb5312f9da0 → 55d16ecf7bea794f8130ad57090cf849} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/565023fdd3960225e817ec043b2d9474 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/577f4d9c0b4703cbfffd7159a232e60e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5a4d2d875f1d8ab987ab653f896d1c39 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5b0d5ead11b1996d8c04250256d5f1d4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5c8a4c90b3525681a2173b93b9d55293 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5e7998a2046d512312e432aef40d3e22 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5eacf8d05b2a79f57d54ee047a51e223 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5ff6c7a42ff7a4d062640d9211b42275 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/604d964a22a33e7a1dc917eb10328fb6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/611bcab6d1ba6d887fc27c1b9f6f2ac4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6808736d34ec24fb10203097ff009a4d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6b57b684590d7c01cfa80052144dd2df +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6c257cb7126b2e5bda4c42d414e39786 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6ce5945ed85a31ec875a9973b5a3d3bc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6d806eaa317f200bbf2832a0abf1c1cc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6e6e4eaedc6398f0557ca2fe922c970d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/706dcf8ec253808fea35ae06a4b408b1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{3636240cbc1f10d05a7e27f44c330bf9 → 7a5d26a333ef57f4cb3f6148d201aabd} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7cfe3fa955d677396ed9e22193559a64 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7e154ca951644e8aa1a2c6221f08db4f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/822d6436044fe88b0b3fbc6f3458ff88 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8576d7c22dbd8222ab27a6c47f56a65c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/88144c375f9e329812d0302be96e0eab +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8a4b32386b5d8554473df478badd6ef9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8bc60f31f479cd0263d897aa45b88750 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{5d4c2ae09c50a0b53500e334aa699c8a → 8bee3d374e40eec902852521ab7bb59e} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/918ab452d9c4634682ff94ffbd89e16f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9406ab6f0dd16a8cd5802c3c74df86ce +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9455de99a5c68705427bbec9e50865ce +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/958dd41e5252627471b2b65116401512 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9658141bfa282274f1da9155c32ae206 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/996ac001c901711cabb64b7e1940c54a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9aec27b5fa2afdfa28068452ece0e6f0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9db7e75f3fa621ef08ade7ffda96e39f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9dc853d92b5d774afadacc451965059c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a125dd8e84a82fc90705bd3710fb93c2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a1c5386d742fb4d01bea977ed28f4a96 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a2ea0bd40e08492898f032af3756ebf9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a30288f737d428b0feb2a78b3aab9c69 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a40d723f9a6ad5b541009b8f05ce6533 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a908448dd851cae431aa2b4bde9b5a98 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/aa5708f6fbe7528d49c127a7f89a2511 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ad7b50123ad008ac0730bbbdf76a6bfe +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b271e3537645a42480b3ba7bca2342f4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{662125e0a3b8f685abafe02e03c6f442 → b9089c33a95ef4a20cce25cc95ce5d25} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ba891185d4fda83f4c16e6bb8139359b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bea8fc4b9fc9ae163aa3e82041be2542 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{6f6ec88ead28d25410be2a6f62ec79b1 → c5e6bcf3743cc436e9c5e728e7968918} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c72101732682999b6ca050f007fc6467 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c8927e934e7960fc7907b6fc02ea7f08 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c980544b5828a643ecaa8e784897c2c2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ca0e1997bc6c40f955a42ee777299750 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cc2c3f8b87c5b787305412a3076058db +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{6ad4d1acfed3cffae46c712b7c08af08 → d0f105bf22b1327c9d92c8695d4eb9cd} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d16461dfcae4b782f721ebd81e4f8740 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{5dff23c7dbd41b1db43fea8c8d933e94 → d30e267e67b877123ca48b32ba67d0b3} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d81122f6f2520c8f0785425936756e20 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dbf160a6439a8d0b792ff46cf0a612f6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dc829340258cc36c0df423725df54649 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dcedf863f6acc3e1f21ec11434a77bf7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dd326f3f4fd1c7fd075b58d6cb623a25 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/de060f82711b4b5c465f17b140eb2a61 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e0352d0f97751491adbe6a94832772af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e1d6efce94e71965434d2dde64fd8410 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e4298973f799acdce289752c24bfddf2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e4900a6e69f874e98b87c7c7b23f7f5a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e62e56f99e228e3467663224450f0a9b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e9c81ca91323dab8977ffd8a459cab06 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{c3f8745dd91cb1b9a0c076a692369c4a → ea4b1e470711396062a4dba82f0823e6} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/eccab0d41d08e156ccd2f36f85949356 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f035bed7351cb6f6e2bf1250125d3d4b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f1e75c209067b23f5c0c7bf2006c43d0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f31e05a23db2e9dfc9207658cda7b799 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{3fdb709b3417757576eff80c0ec26b75 → f4428df54ac764385fa3d1c156fd8430} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f5c9348795319821f3309d4e03bb9fdb +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f631443b06d6b36e666344dbaf0b64f0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f71bbedf97979d3cfe44077a64d3e98a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{8e22d55d0b7b958a3904e7428269df65 → f795ed856980e9033fa3603aa61bac8d} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7ab949c8c6b7ef3f2b743ebd98f9f59 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fc4b3bb94f52c27dfb87395841a7cb62 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fc79e1609ba401a4408c71182ef89b3e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fd1e0a44b82fc47f26c7adec9d918911 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fe9a0ccc2a407c74780c85e66882e888 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ff3b0a569330823bd5599af14ee70cc8 +0 -0
- metadata +239 -222
- data/app/assets/stylesheets/carnival/noty_theme_default.css +0 -185
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/22e50c67b95bf23b653e7a6768d38749 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2a4d4d7ea99972ea41453ec4e6bad058 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/58ce7bbd3c0d5ae2c59e5fcd6692d8ce +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7e60927c780355f751c11cc4581b0c51 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/84e6a879569ca7546a93558488a6ff70 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d2ea65cc83e604dee36a5316b567e3e2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d554039ac665d1a72c5af06725134a59 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/eed84a44f4e3915a39ea98ce25dc2570 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
"function"!=typeof Object.create&&(Object.create=function(a){function b(){}return b.prototype=a,new b}),function(a){var b={init:function(b){return this.options=a.extend({},a.noty.defaults,b),this.options.layout=this.options.custom?a.noty.layouts.inline:a.noty.layouts[this.options.layout],a.noty.themes[this.options.theme]?this.options.theme=a.noty.themes[this.options.theme]:b.themeClassName=this.options.theme,delete b.layout,delete b.theme,this.options=a.extend({},this.options,this.options.layout.options),this.options.id="noty_"+(new Date).getTime()*Math.floor(1e6*Math.random()),this.options=a.extend({},this.options,b),this._build(),this},_build:function(){var b=a('<div class="noty_bar noty_type_'+this.options.type+'"></div>').attr("id",this.options.id);if(b.append(this.options.template).find(".noty_text").html(this.options.text),this.$bar=null!==this.options.layout.parent.object?a(this.options.layout.parent.object).css(this.options.layout.parent.css).append(b):b,this.options.themeClassName&&this.$bar.addClass(this.options.themeClassName).addClass("noty_container_type_"+this.options.type),this.options.buttons){this.options.closeWith=[],this.options.timeout=!1;var c=a("<div/>").addClass("noty_buttons");null!==this.options.layout.parent.object?this.$bar.find(".noty_bar").append(c):this.$bar.append(c);var d=this;a.each(this.options.buttons,function(b,c){var e=a("<button/>").addClass(c.addClass?c.addClass:"gray").html(c.text).attr("id",c.id?c.id:"button-"+b).appendTo(d.$bar.find(".noty_buttons")).bind("click",function(){a.isFunction(c.onClick)&&c.onClick.call(e,d)})})}this.$message=this.$bar.find(".noty_message"),this.$closeButton=this.$bar.find(".noty_close"),this.$buttons=this.$bar.find(".noty_buttons"),a.noty.store[this.options.id]=this},show:function(){var b=this;return b.options.custom?b.options.custom.find(b.options.layout.container.selector).append(b.$bar):a(b.options.layout.container.selector).append(b.$bar),b.options.theme&&b.options.theme.style&&b.options.theme.style.apply(b),"function"===a.type(b.options.layout.css)?this.options.layout.css.apply(b.$bar):b.$bar.css(this.options.layout.css||{}),b.$bar.addClass(b.options.layout.addClass),b.options.layout.container.style.apply(a(b.options.layout.container.selector)),b.showing=!0,b.options.theme&&b.options.theme.style&&b.options.theme.callback.onShow.apply(this),a.inArray("click",b.options.closeWith)>-1&&b.$bar.css("cursor","pointer").one("click",function(a){b.stopPropagation(a),b.options.callback.onCloseClick&&b.options.callback.onCloseClick.apply(b),b.close()}),a.inArray("hover",b.options.closeWith)>-1&&b.$bar.one("mouseenter",function(){b.close()}),a.inArray("button",b.options.closeWith)>-1&&b.$closeButton.one("click",function(a){b.stopPropagation(a),b.close()}),-1==a.inArray("button",b.options.closeWith)&&b.$closeButton.remove(),b.options.callback.onShow&&b.options.callback.onShow.apply(b),b.$bar.animate(b.options.animation.open,b.options.animation.speed,b.options.animation.easing,function(){b.options.callback.afterShow&&b.options.callback.afterShow.apply(b),b.showing=!1,b.shown=!0}),b.options.timeout&&b.$bar.delay(b.options.timeout).promise().done(function(){b.close()}),this},close:function(){if(!(this.closed||this.$bar&&this.$bar.hasClass("i-am-closing-now"))){var b=this;if(this.showing)return b.$bar.queue(function(){b.close.apply(b)}),void 0;if(!this.shown&&!this.showing){var c=[];return a.each(a.noty.queue,function(a,d){d.options.id!=b.options.id&&c.push(d)}),a.noty.queue=c,void 0}b.$bar.addClass("i-am-closing-now"),b.options.callback.onClose&&b.options.callback.onClose.apply(b),b.$bar.clearQueue().stop().animate(b.options.animation.close,b.options.animation.speed,b.options.animation.easing,function(){b.options.callback.afterClose&&b.options.callback.afterClose.apply(b)}).promise().done(function(){b.options.modal&&(a.notyRenderer.setModalCount(-1),0==a.notyRenderer.getModalCount()&&a(".noty_modal").fadeOut("fast",function(){a(this).remove()})),a.notyRenderer.setLayoutCountFor(b,-1),0==a.notyRenderer.getLayoutCountFor(b)&&a(b.options.layout.container.selector).remove(),"undefined"!=typeof b.$bar&&null!==b.$bar&&(b.$bar.remove(),b.$bar=null,b.closed=!0),delete a.noty.store[b.options.id],b.options.theme.callback&&b.options.theme.callback.onClose&&b.options.theme.callback.onClose.apply(b),b.options.dismissQueue||(a.noty.ontap=!0,a.notyRenderer.render()),b.options.maxVisible>0&&b.options.dismissQueue&&a.notyRenderer.render()})}},setText:function(a){return this.closed||(this.options.text=a,this.$bar.find(".noty_text").html(a)),this},setType:function(a){return this.closed||(this.options.type=a,this.options.theme.style.apply(this),this.options.theme.callback.onShow.apply(this)),this},setTimeout:function(a){if(!this.closed){var b=this;this.options.timeout=a,b.$bar.delay(b.options.timeout).promise().done(function(){b.close()})}return this},stopPropagation:function(a){a=a||window.event,"undefined"!=typeof a.stopPropagation?a.stopPropagation():a.cancelBubble=!0},closed:!1,showing:!1,shown:!1};a.notyRenderer={},a.notyRenderer.init=function(c){var d=Object.create(b).init(c);return d.options.killer&&a.noty.closeAll(),d.options.force?a.noty.queue.unshift(d):a.noty.queue.push(d),a.notyRenderer.render(),"object"==a.noty.returns?d:d.options.id},a.notyRenderer.render=function(){var b=a.noty.queue[0];"object"===a.type(b)?b.options.dismissQueue?b.options.maxVisible>0?a(b.options.layout.container.selector+" li").length<b.options.maxVisible&&a.notyRenderer.show(a.noty.queue.shift()):a.notyRenderer.show(a.noty.queue.shift()):a.noty.ontap&&(a.notyRenderer.show(a.noty.queue.shift()),a.noty.ontap=!1):a.noty.ontap=!0},a.notyRenderer.show=function(b){b.options.modal&&(a.notyRenderer.createModalFor(b),a.notyRenderer.setModalCount(1)),b.options.custom?0==b.options.custom.find(b.options.layout.container.selector).length?b.options.custom.append(a(b.options.layout.container.object).addClass("i-am-new")):b.options.custom.find(b.options.layout.container.selector).removeClass("i-am-new"):0==a(b.options.layout.container.selector).length?a("body").append(a(b.options.layout.container.object).addClass("i-am-new")):a(b.options.layout.container.selector).removeClass("i-am-new"),a.notyRenderer.setLayoutCountFor(b,1),b.show()},a.notyRenderer.createModalFor=function(b){if(0==a(".noty_modal").length){var c=a("<div/>").addClass("noty_modal").addClass(b.options.theme).data("noty_modal_count",0);b.options.theme.modal&&b.options.theme.modal.css&&c.css(b.options.theme.modal.css),c.prependTo(a("body")).fadeIn("fast")}},a.notyRenderer.getLayoutCountFor=function(b){return a(b.options.layout.container.selector).data("noty_layout_count")||0},a.notyRenderer.setLayoutCountFor=function(b,c){return a(b.options.layout.container.selector).data("noty_layout_count",a.notyRenderer.getLayoutCountFor(b)+c)},a.notyRenderer.getModalCount=function(){return a(".noty_modal").data("noty_modal_count")||0},a.notyRenderer.setModalCount=function(b){return a(".noty_modal").data("noty_modal_count",a.notyRenderer.getModalCount()+b)},a.fn.noty=function(b){return b.custom=a(this),a.notyRenderer.init(b)},a.noty={},a.noty.queue=[],a.noty.ontap=!0,a.noty.layouts={},a.noty.themes={},a.noty.returns="object",a.noty.store={},a.noty.get=function(b){return a.noty.store.hasOwnProperty(b)?a.noty.store[b]:!1},a.noty.close=function(b){return a.noty.get(b)?a.noty.get(b).close():!1},a.noty.setText=function(b,c){return a.noty.get(b)?a.noty.get(b).setText(c):!1},a.noty.setType=function(b,c){return a.noty.get(b)?a.noty.get(b).setType(c):!1},a.noty.clearQueue=function(){a.noty.queue=[]},a.noty.closeAll=function(){a.noty.clearQueue(),a.each(a.noty.store,function(a,b){b.close()})};var c=window.alert;a.noty.consumeAlert=function(b){window.alert=function(c){b?b.text=c:b={text:c},a.notyRenderer.init(b)}},a.noty.stopConsumeAlert=function(){window.alert=c},a.noty.defaults={layout:"top",theme:"defaultTheme",type:"alert",text:"",dismissQueue:!0,template:'<div class="noty_message"><span class="noty_text"></span><div class="noty_close"></div></div>',animation:{open:{height:"toggle"},close:{height:"toggle"},easing:"swing",speed:500},timeout:!1,force:!1,modal:!1,maxVisible:5,killer:!1,closeWith:["click"],callback:{onShow:function(){},afterShow:function(){},onClose:function(){},afterClose:function(){},onCloseClick:function(){}},buttons:!1},a(window).resize(function(){a.each(a.noty.layouts,function(b,c){c.container.style.apply(a(c.container.selector))})})}(jQuery),window.noty=function(a){return jQuery.notyRenderer.init(a)},function(a){a.noty.layouts.bottom={name:"bottom",options:{},container:{object:'<ul id="noty_bottom_layout_container" />',selector:"ul#noty_bottom_layout_container",style:function(){a(this).css({bottom:0,left:"5%",position:"fixed",width:"90%",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:9999999})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none"},addClass:""}}(jQuery),function(a){a.noty.layouts.bottomCenter={name:"bottomCenter",options:{},container:{object:'<ul id="noty_bottomCenter_layout_container" />',selector:"ul#noty_bottomCenter_layout_container",style:function(){a(this).css({bottom:20,left:0,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),a(this).css({left:(a(window).width()-a(this).outerWidth(!1))/2+"px"})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""}}(jQuery),function(a){a.noty.layouts.bottomLeft={name:"bottomLeft",options:{},container:{object:'<ul id="noty_bottomLeft_layout_container" />',selector:"ul#noty_bottomLeft_layout_container",style:function(){a(this).css({bottom:20,left:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),window.innerWidth<600&&a(this).css({left:5})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""}}(jQuery),function(a){a.noty.layouts.bottomRight={name:"bottomRight",options:{},container:{object:'<ul id="noty_bottomRight_layout_container" />',selector:"ul#noty_bottomRight_layout_container",style:function(){a(this).css({bottom:20,right:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),window.innerWidth<600&&a(this).css({right:5})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""}}(jQuery),function(a){a.noty.layouts.center={name:"center",options:{},container:{object:'<ul id="noty_center_layout_container" />',selector:"ul#noty_center_layout_container",style:function(){a(this).css({position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7});var b=a(this).clone().css({visibility:"hidden",display:"block",position:"absolute",top:0,left:0}).attr("id","dupe");a("body").append(b),b.find(".i-am-closing-now").remove(),b.find("li").css("display","block");var c=b.height();b.remove(),a(this).hasClass("i-am-new")?a(this).css({left:(a(window).width()-a(this).outerWidth(!1))/2+"px",top:(a(window).height()-c)/2+"px"}):a(this).animate({left:(a(window).width()-a(this).outerWidth(!1))/2+"px",top:(a(window).height()-c)/2+"px"},500)}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""}}(jQuery),function(a){a.noty.layouts.centerLeft={name:"centerLeft",options:{},container:{object:'<ul id="noty_centerLeft_layout_container" />',selector:"ul#noty_centerLeft_layout_container",style:function(){a(this).css({left:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7});var b=a(this).clone().css({visibility:"hidden",display:"block",position:"absolute",top:0,left:0}).attr("id","dupe");a("body").append(b),b.find(".i-am-closing-now").remove(),b.find("li").css("display","block");var c=b.height();b.remove(),a(this).hasClass("i-am-new")?a(this).css({top:(a(window).height()-c)/2+"px"}):a(this).animate({top:(a(window).height()-c)/2+"px"},500),window.innerWidth<600&&a(this).css({left:5})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""}}(jQuery),function(a){a.noty.layouts.centerRight={name:"centerRight",options:{},container:{object:'<ul id="noty_centerRight_layout_container" />',selector:"ul#noty_centerRight_layout_container",style:function(){a(this).css({right:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7});var b=a(this).clone().css({visibility:"hidden",display:"block",position:"absolute",top:0,left:0}).attr("id","dupe");a("body").append(b),b.find(".i-am-closing-now").remove(),b.find("li").css("display","block");var c=b.height();b.remove(),a(this).hasClass("i-am-new")?a(this).css({top:(a(window).height()-c)/2+"px"}):a(this).animate({top:(a(window).height()-c)/2+"px"},500),window.innerWidth<600&&a(this).css({right:5})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""}}(jQuery),function(a){a.noty.layouts.inline={name:"inline",options:{},container:{object:'<ul class="noty_inline_layout_container" />',selector:"ul.noty_inline_layout_container",style:function(){a(this).css({width:"100%",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:9999999})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none"},addClass:""}}(jQuery),function(a){a.noty.layouts.top={name:"top",options:{},container:{object:'<ul id="noty_top_layout_container" />',selector:"ul#noty_top_layout_container",style:function(){a(this).css({top:0,left:"5%",position:"fixed",width:"90%",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:9999999})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none"},addClass:""}}(jQuery),function(a){a.noty.layouts.topCenter={name:"topCenter",options:{},container:{object:'<ul id="noty_topCenter_layout_container" />',selector:"ul#noty_topCenter_layout_container",style:function(){a(this).css({top:20,left:0,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),a(this).css({left:(a(window).width()-a(this).outerWidth(!1))/2+"px"})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""}}(jQuery),function(a){a.noty.layouts.topLeft={name:"topLeft",options:{},container:{object:'<ul id="noty_topLeft_layout_container" />',selector:"ul#noty_topLeft_layout_container",style:function(){a(this).css({top:20,left:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),window.innerWidth<600&&a(this).css({left:5})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""}}(jQuery),function(a){a.noty.layouts.topRight={name:"topRight",options:{},container:{object:'<ul id="noty_topRight_layout_container" />',selector:"ul#noty_topRight_layout_container",style:function(){a(this).css({top:20,right:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),window.innerWidth<600&&a(this).css({right:5})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""}}(jQuery),function(a){a.noty.themes.defaultTheme={name:"defaultTheme",helpers:{borderFix:function(){if(this.options.dismissQueue){var b=this.options.layout.container.selector+" "+this.options.layout.parent.selector;switch(this.options.layout.name){case"top":a(b).css({borderRadius:"0px 0px 0px 0px"}),a(b).last().css({borderRadius:"0px 0px 5px 5px"});break;case"topCenter":case"topLeft":case"topRight":case"bottomCenter":case"bottomLeft":case"bottomRight":case"center":case"centerLeft":case"centerRight":case"inline":a(b).css({borderRadius:"0px 0px 0px 0px"}),a(b).first().css({"border-top-left-radius":"5px","border-top-right-radius":"5px"}),a(b).last().css({"border-bottom-left-radius":"5px","border-bottom-right-radius":"5px"});break;case"bottom":a(b).css({borderRadius:"0px 0px 0px 0px"}),a(b).first().css({borderRadius:"5px 5px 0px 0px"})}}}},modal:{css:{position:"fixed",width:"100%",height:"100%",backgroundColor:"#000",zIndex:1e4,opacity:.6,display:"none",left:0,top:0}},style:function(){switch(this.$bar.css({overflow:"hidden",background:"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAoCAYAAAAPOoFWAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAPZJREFUeNq81tsOgjAMANB2ov7/7ypaN7IlIwi9rGuT8QSc9EIDAsAznxvY4pXPKr05RUE5MEVB+TyWfCEl9LZApYopCmo9C4FKSMtYoI8Bwv79aQJU4l6hXXCZrQbokJEksxHo9KMOgc6w1atHXM8K9DVC7FQnJ0i8iK3QooGgbnyKgMDygBWyYFZoqx4qS27KqLZJjA1D0jK6QJcYEQEiWv9PGkTsbqxQ8oT+ZtZB6AkdsJnQDnMoHXHLGKOgDYuCWmYhEERCI5gaamW0bnHdA3k2ltlIN+2qKRyCND0bhqSYCyTB3CAOc4WusBEIpkeBuPgJMAAX8Hs1NfqHRgAAAABJRU5ErkJggg==') repeat-x scroll left top #fff"}),this.$message.css({fontSize:"13px",lineHeight:"16px",textAlign:"center",padding:"8px 10px 9px",width:"auto",position:"relative"}),this.$closeButton.css({position:"absolute",top:4,right:4,width:10,height:10,background:"url(data:image/png;base64,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)",display:"none",cursor:"pointer"}),this.$buttons.css({padding:5,textAlign:"right",borderTop:"1px solid #ccc",backgroundColor:"#fff"}),this.$buttons.find("button").css({marginLeft:5}),this.$buttons.find("button:first").css({marginLeft:0}),this.$bar.bind({mouseenter:function(){a(this).find(".noty_close").stop().fadeTo("normal",1)},mouseleave:function(){a(this).find(".noty_close").stop().fadeTo("normal",0)}}),this.options.layout.name){case"top":this.$bar.css({borderRadius:"0px 0px 5px 5px",borderBottom:"2px solid #eee",borderLeft:"2px solid #eee",borderRight:"2px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"});break;case"topCenter":case"center":case"bottomCenter":case"inline":this.$bar.css({borderRadius:"5px",border:"1px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}),this.$message.css({fontSize:"13px",textAlign:"center"});break;case"topLeft":case"topRight":case"bottomLeft":case"bottomRight":case"centerLeft":case"centerRight":this.$bar.css({borderRadius:"5px",border:"1px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}),this.$message.css({fontSize:"13px",textAlign:"left"});break;case"bottom":this.$bar.css({borderRadius:"5px 5px 0px 0px",borderTop:"2px solid #eee",borderLeft:"2px solid #eee",borderRight:"2px solid #eee",boxShadow:"0 -2px 4px rgba(0, 0, 0, 0.1)"});break;default:this.$bar.css({border:"2px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"})}switch(this.options.type){case"alert":case"notification":this.$bar.css({backgroundColor:"#FFF",borderColor:"#CCC",color:"#444"});break;case"warning":this.$bar.css({backgroundColor:"#FFEAA8",borderColor:"#FFC237",color:"#826200"}),this.$buttons.css({borderTop:"1px solid #FFC237"});break;case"error":this.$bar.css({backgroundColor:"red",borderColor:"darkred",color:"#FFF"}),this.$message.css({fontWeight:"bold"}),this.$buttons.css({borderTop:"1px solid darkred"});break;case"information":this.$bar.css({backgroundColor:"#57B7E2",borderColor:"#0B90C4",color:"#FFF"}),this.$buttons.css({borderTop:"1px solid #0B90C4"});break;case"success":this.$bar.css({backgroundColor:"lightgreen",borderColor:"#50C24E",color:"darkgreen"}),this.$buttons.css({borderTop:"1px solid #50C24E"});break;default:this.$bar.css({backgroundColor:"#FFF",borderColor:"#CCC",color:"#444"})}},callback:{onShow:function(){a.noty.themes.defaultTheme.helpers.borderFix.apply(this)},onClose:function(){a.noty.themes.defaultTheme.helpers.borderFix.apply(this)}}}}(jQuery);
|
@@ -0,0 +1,432 @@
|
|
1
|
+
/*!
|
2
|
+
* Noty Helpers Javascript From JQuery Javascript Library
|
3
|
+
*
|
4
|
+
* Ported by Maksim Pecherskiy. Original Licensing:
|
5
|
+
*
|
6
|
+
* http://jquery.com/
|
7
|
+
*
|
8
|
+
* Copyright 2011, John Resig
|
9
|
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
10
|
+
* http://jquery.org/license
|
11
|
+
*
|
12
|
+
* Includes Sizzle.js
|
13
|
+
* http://sizzlejs.com/
|
14
|
+
* Copyright 2011, The Dojo Foundation
|
15
|
+
* Released under the MIT, BSD, and GPL Licenses.
|
16
|
+
*
|
17
|
+
* Date: Mon Nov 21 21:11:03 2011 -0500
|
18
|
+
*/
|
19
|
+
|
20
|
+
|
21
|
+
(function(){
|
22
|
+
|
23
|
+
// String to Object flags format cache
|
24
|
+
var flagsCache = {};
|
25
|
+
|
26
|
+
// Convert String-formatted flags into Object-formatted ones and store in cache
|
27
|
+
function createFlags( flags ) {
|
28
|
+
var object = flagsCache[ flags ] = {},
|
29
|
+
i, length;
|
30
|
+
flags = flags.split( /\s+/ );
|
31
|
+
for ( i = 0, length = flags.length; i < length; i++ ) {
|
32
|
+
object[ flags[i] ] = true;
|
33
|
+
}
|
34
|
+
return object;
|
35
|
+
}
|
36
|
+
|
37
|
+
jQuery.extend({
|
38
|
+
|
39
|
+
_mark: function( elem, type ) {
|
40
|
+
if ( elem ) {
|
41
|
+
type = (type || "fx") + "mark";
|
42
|
+
jQuery.data( elem, type, (jQuery.data(elem,type,undefined,true) || 0) + 1, true );
|
43
|
+
}
|
44
|
+
},
|
45
|
+
|
46
|
+
_unmark: function( force, elem, type ) {
|
47
|
+
if ( force !== true ) {
|
48
|
+
type = elem;
|
49
|
+
elem = force;
|
50
|
+
force = false;
|
51
|
+
}
|
52
|
+
if ( elem ) {
|
53
|
+
type = type || "fx";
|
54
|
+
var key = type + "mark",
|
55
|
+
count = force ? 0 : ( (jQuery.data( elem, key, undefined, true) || 1 ) - 1 );
|
56
|
+
if ( count ) {
|
57
|
+
jQuery.data( elem, key, count, true );
|
58
|
+
} else {
|
59
|
+
jQuery.removeData( elem, key, true );
|
60
|
+
handleQueueMarkDefer( elem, type, "mark" );
|
61
|
+
}
|
62
|
+
}
|
63
|
+
},
|
64
|
+
|
65
|
+
queue: function( elem, type, data ) {
|
66
|
+
if ( elem ) {
|
67
|
+
type = (type || "fx") + "queue";
|
68
|
+
var q = jQuery.data( elem, type, undefined, true );
|
69
|
+
// Speed up dequeue by getting out quickly if this is just a lookup
|
70
|
+
if ( data ) {
|
71
|
+
if ( !q || jQuery.isArray(data) ) {
|
72
|
+
q = jQuery.data( elem, type, jQuery.makeArray(data), true );
|
73
|
+
} else {
|
74
|
+
q.push( data );
|
75
|
+
}
|
76
|
+
}
|
77
|
+
return q || [];
|
78
|
+
}
|
79
|
+
},
|
80
|
+
|
81
|
+
dequeue: function( elem, type ) {
|
82
|
+
type = type || "fx";
|
83
|
+
|
84
|
+
var queue = jQuery.queue( elem, type ),
|
85
|
+
fn = queue.shift(),
|
86
|
+
defer;
|
87
|
+
|
88
|
+
// If the fx queue is dequeued, always remove the progress sentinel
|
89
|
+
if ( fn === "inprogress" ) {
|
90
|
+
fn = queue.shift();
|
91
|
+
}
|
92
|
+
|
93
|
+
if ( fn ) {
|
94
|
+
// Add a progress sentinel to prevent the fx queue from being
|
95
|
+
// automatically dequeued
|
96
|
+
if ( type === "fx" ) {
|
97
|
+
queue.unshift("inprogress");
|
98
|
+
}
|
99
|
+
|
100
|
+
fn.call(elem, function() {
|
101
|
+
jQuery.dequeue(elem, type);
|
102
|
+
});
|
103
|
+
}
|
104
|
+
|
105
|
+
if ( !queue.length ) {
|
106
|
+
jQuery.removeData( elem, type + "queue", true );
|
107
|
+
handleQueueMarkDefer( elem, type, "queue" );
|
108
|
+
}
|
109
|
+
}
|
110
|
+
});
|
111
|
+
|
112
|
+
jQuery.fn.extend({
|
113
|
+
queue: function( type, data ) {
|
114
|
+
if ( typeof type !== "string" ) {
|
115
|
+
data = type;
|
116
|
+
type = "fx";
|
117
|
+
}
|
118
|
+
|
119
|
+
if ( data === undefined ) {
|
120
|
+
return jQuery.queue( this[0], type );
|
121
|
+
}
|
122
|
+
return this.each(function() {
|
123
|
+
var queue = jQuery.queue( this, type, data );
|
124
|
+
|
125
|
+
if ( type === "fx" && queue[0] !== "inprogress" ) {
|
126
|
+
jQuery.dequeue( this, type );
|
127
|
+
}
|
128
|
+
});
|
129
|
+
},
|
130
|
+
dequeue: function( type ) {
|
131
|
+
return this.each(function() {
|
132
|
+
jQuery.dequeue( this, type );
|
133
|
+
});
|
134
|
+
},
|
135
|
+
// Based off of the plugin by Clint Helfers, with permission.
|
136
|
+
// http://blindsignals.com/index.php/2009/07/jquery-delay/
|
137
|
+
delay: function( time, type ) {
|
138
|
+
time = jQuery.fx ? jQuery.fx.speeds[time] || time : time;
|
139
|
+
type = type || "fx";
|
140
|
+
|
141
|
+
return this.queue( type, function() {
|
142
|
+
var elem = this;
|
143
|
+
setTimeout(function() {
|
144
|
+
jQuery.dequeue( elem, type );
|
145
|
+
}, time );
|
146
|
+
});
|
147
|
+
},
|
148
|
+
clearQueue: function( type ) {
|
149
|
+
return this.queue( type || "fx", [] );
|
150
|
+
},
|
151
|
+
// Get a promise resolved when queues of a certain type
|
152
|
+
// are emptied (fx is the type by default)
|
153
|
+
promise: function( type, object ) {
|
154
|
+
if ( typeof type !== "string" ) {
|
155
|
+
object = type;
|
156
|
+
type = undefined;
|
157
|
+
}
|
158
|
+
type = type || "fx";
|
159
|
+
var defer = jQuery.Deferred(),
|
160
|
+
elements = this,
|
161
|
+
i = elements.length,
|
162
|
+
count = 1,
|
163
|
+
deferDataKey = type + "defer",
|
164
|
+
queueDataKey = type + "queue",
|
165
|
+
markDataKey = type + "mark",
|
166
|
+
tmp;
|
167
|
+
function resolve() {
|
168
|
+
if ( !( --count ) ) {
|
169
|
+
defer.resolveWith( elements, [ elements ] );
|
170
|
+
}
|
171
|
+
}
|
172
|
+
while( i-- ) {
|
173
|
+
if (( tmp = jQuery.data( elements[ i ], deferDataKey, undefined, true ) ||
|
174
|
+
( jQuery.data( elements[ i ], queueDataKey, undefined, true ) ||
|
175
|
+
jQuery.data( elements[ i ], markDataKey, undefined, true ) ) &&
|
176
|
+
jQuery.data( elements[ i ], deferDataKey, jQuery._Deferred(), true ) )) {
|
177
|
+
count++;
|
178
|
+
tmp.done( resolve );
|
179
|
+
}
|
180
|
+
}
|
181
|
+
resolve();
|
182
|
+
return defer.promise();
|
183
|
+
}
|
184
|
+
});
|
185
|
+
|
186
|
+
function handleQueueMarkDefer( elem, type, src ) {
|
187
|
+
var deferDataKey = type + "defer",
|
188
|
+
queueDataKey = type + "queue",
|
189
|
+
markDataKey = type + "mark",
|
190
|
+
defer = jQuery._data( elem, deferDataKey );
|
191
|
+
if ( defer &&
|
192
|
+
( src === "queue" || !jQuery._data(elem, queueDataKey) ) &&
|
193
|
+
( src === "mark" || !jQuery._data(elem, markDataKey) ) ) {
|
194
|
+
// Give room for hard-coded callbacks to fire first
|
195
|
+
// and eventually mark/queue something else on the element
|
196
|
+
setTimeout( function() {
|
197
|
+
if ( !jQuery._data( elem, queueDataKey ) &&
|
198
|
+
!jQuery._data( elem, markDataKey ) ) {
|
199
|
+
jQuery.removeData( elem, deferDataKey, true );
|
200
|
+
defer.fire();
|
201
|
+
}
|
202
|
+
}, 0 );
|
203
|
+
}
|
204
|
+
}
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
jQuery.Callbacks = function( flags ) {
|
209
|
+
|
210
|
+
// Convert flags from String-formatted to Object-formatted
|
211
|
+
// (we check in cache first)
|
212
|
+
flags = flags ? ( /*flagsCache[ flags ] || */createFlags( flags ) ) : {};
|
213
|
+
|
214
|
+
var // Actual callback list
|
215
|
+
list = [],
|
216
|
+
// Stack of fire calls for repeatable lists
|
217
|
+
stack = [],
|
218
|
+
// Last fire value (for non-forgettable lists)
|
219
|
+
memory,
|
220
|
+
// Flag to know if list is currently firing
|
221
|
+
firing,
|
222
|
+
// First callback to fire (used internally by add and fireWith)
|
223
|
+
firingStart,
|
224
|
+
// End of the loop when firing
|
225
|
+
firingLength,
|
226
|
+
// Index of currently firing callback (modified by remove if needed)
|
227
|
+
firingIndex,
|
228
|
+
// Add one or several callbacks to the list
|
229
|
+
add = function( args ) {
|
230
|
+
var i,
|
231
|
+
length,
|
232
|
+
elem,
|
233
|
+
type,
|
234
|
+
actual;
|
235
|
+
for ( i = 0, length = args.length; i < length; i++ ) {
|
236
|
+
elem = args[ i ];
|
237
|
+
type = jQuery.type( elem );
|
238
|
+
if ( type === "array" ) {
|
239
|
+
// Inspect recursively
|
240
|
+
add( elem );
|
241
|
+
} else if ( type === "function" ) {
|
242
|
+
// Add if not in unique mode and callback is not in
|
243
|
+
if ( !flags.unique || !self.has( elem ) ) {
|
244
|
+
list.push( elem );
|
245
|
+
}
|
246
|
+
}
|
247
|
+
}
|
248
|
+
},
|
249
|
+
// Fire callbacks
|
250
|
+
fire = function( context, args ) {
|
251
|
+
args = args || [];
|
252
|
+
memory = !flags.memory || [ context, args ];
|
253
|
+
firing = true;
|
254
|
+
firingIndex = firingStart || 0;
|
255
|
+
firingStart = 0;
|
256
|
+
firingLength = list.length;
|
257
|
+
for ( ; list && firingIndex < firingLength; firingIndex++ ) {
|
258
|
+
if ( list[ firingIndex ].apply( context, args ) === false && flags.stopOnFalse ) {
|
259
|
+
memory = true; // Mark as halted
|
260
|
+
break;
|
261
|
+
}
|
262
|
+
}
|
263
|
+
firing = false;
|
264
|
+
if ( list ) {
|
265
|
+
if ( !flags.once ) {
|
266
|
+
if ( stack && stack.length ) {
|
267
|
+
memory = stack.shift();
|
268
|
+
self.fireWith( memory[ 0 ], memory[ 1 ] );
|
269
|
+
}
|
270
|
+
} else if ( memory === true ) {
|
271
|
+
self.disable();
|
272
|
+
} else {
|
273
|
+
list = [];
|
274
|
+
}
|
275
|
+
}
|
276
|
+
},
|
277
|
+
// Actual Callbacks object
|
278
|
+
self = {
|
279
|
+
// Add a callback or a collection of callbacks to the list
|
280
|
+
add: function() {
|
281
|
+
if ( list ) {
|
282
|
+
var length = list.length;
|
283
|
+
add( arguments );
|
284
|
+
// Do we need to add the callbacks to the
|
285
|
+
// current firing batch?
|
286
|
+
if ( firing ) {
|
287
|
+
firingLength = list.length;
|
288
|
+
// With memory, if we're not firing then
|
289
|
+
// we should call right away, unless previous
|
290
|
+
// firing was halted (stopOnFalse)
|
291
|
+
} else if ( memory && memory !== true ) {
|
292
|
+
firingStart = length;
|
293
|
+
fire( memory[ 0 ], memory[ 1 ] );
|
294
|
+
}
|
295
|
+
}
|
296
|
+
return this;
|
297
|
+
},
|
298
|
+
// Remove a callback from the list
|
299
|
+
remove: function() {
|
300
|
+
if ( list ) {
|
301
|
+
var args = arguments,
|
302
|
+
argIndex = 0,
|
303
|
+
argLength = args.length;
|
304
|
+
for ( ; argIndex < argLength ; argIndex++ ) {
|
305
|
+
for ( var i = 0; i < list.length; i++ ) {
|
306
|
+
if ( args[ argIndex ] === list[ i ] ) {
|
307
|
+
// Handle firingIndex and firingLength
|
308
|
+
if ( firing ) {
|
309
|
+
if ( i <= firingLength ) {
|
310
|
+
firingLength--;
|
311
|
+
if ( i <= firingIndex ) {
|
312
|
+
firingIndex--;
|
313
|
+
}
|
314
|
+
}
|
315
|
+
}
|
316
|
+
// Remove the element
|
317
|
+
list.splice( i--, 1 );
|
318
|
+
// If we have some unicity property then
|
319
|
+
// we only need to do this once
|
320
|
+
if ( flags.unique ) {
|
321
|
+
break;
|
322
|
+
}
|
323
|
+
}
|
324
|
+
}
|
325
|
+
}
|
326
|
+
}
|
327
|
+
return this;
|
328
|
+
},
|
329
|
+
// Control if a given callback is in the list
|
330
|
+
has: function( fn ) {
|
331
|
+
if ( list ) {
|
332
|
+
var i = 0,
|
333
|
+
length = list.length;
|
334
|
+
for ( ; i < length; i++ ) {
|
335
|
+
if ( fn === list[ i ] ) {
|
336
|
+
return true;
|
337
|
+
}
|
338
|
+
}
|
339
|
+
}
|
340
|
+
return false;
|
341
|
+
},
|
342
|
+
// Remove all callbacks from the list
|
343
|
+
empty: function() {
|
344
|
+
list = [];
|
345
|
+
return this;
|
346
|
+
},
|
347
|
+
// Have the list do nothing anymore
|
348
|
+
disable: function() {
|
349
|
+
list = stack = memory = undefined;
|
350
|
+
return this;
|
351
|
+
},
|
352
|
+
// Is it disabled?
|
353
|
+
disabled: function() {
|
354
|
+
return !list;
|
355
|
+
},
|
356
|
+
// Lock the list in its current state
|
357
|
+
lock: function() {
|
358
|
+
stack = undefined;
|
359
|
+
if ( !memory || memory === true ) {
|
360
|
+
self.disable();
|
361
|
+
}
|
362
|
+
return this;
|
363
|
+
},
|
364
|
+
// Is it locked?
|
365
|
+
locked: function() {
|
366
|
+
return !stack;
|
367
|
+
},
|
368
|
+
// Call all callbacks with the given context and arguments
|
369
|
+
fireWith: function( context, args ) {
|
370
|
+
if ( stack ) {
|
371
|
+
if ( firing ) {
|
372
|
+
if ( !flags.once ) {
|
373
|
+
stack.push( [ context, args ] );
|
374
|
+
}
|
375
|
+
} else if ( !( flags.once && memory ) ) {
|
376
|
+
fire( context, args );
|
377
|
+
}
|
378
|
+
}
|
379
|
+
return this;
|
380
|
+
},
|
381
|
+
// Call all the callbacks with the given arguments
|
382
|
+
fire: function() {
|
383
|
+
self.fireWith( this, arguments );
|
384
|
+
return this;
|
385
|
+
},
|
386
|
+
// To know if the callbacks have already been called at least once
|
387
|
+
fired: function() {
|
388
|
+
return !!memory;
|
389
|
+
}
|
390
|
+
};
|
391
|
+
|
392
|
+
return self;
|
393
|
+
};
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
jQuery.fn.extend({
|
398
|
+
// Get a promise resolved when queues of a certain type
|
399
|
+
// are emptied (fx is the type by default)
|
400
|
+
promise: function( type, object ) {
|
401
|
+
if ( typeof type !== "string" ) {
|
402
|
+
object = type;
|
403
|
+
type = undefined;
|
404
|
+
}
|
405
|
+
type = type || "fx";
|
406
|
+
var defer = jQuery.Deferred(),
|
407
|
+
elements = this,
|
408
|
+
i = elements.length,
|
409
|
+
count = 1,
|
410
|
+
deferDataKey = type + "defer",
|
411
|
+
queueDataKey = type + "queue",
|
412
|
+
markDataKey = type + "mark",
|
413
|
+
tmp;
|
414
|
+
function resolve() {
|
415
|
+
if ( !( --count ) ) {
|
416
|
+
defer.resolveWith( elements, [ elements ] );
|
417
|
+
}
|
418
|
+
}
|
419
|
+
while( i-- ) {
|
420
|
+
if (( tmp = jQuery.data( elements[ i ], deferDataKey, undefined, true ) ||
|
421
|
+
( jQuery.data( elements[ i ], queueDataKey, undefined, true ) ||
|
422
|
+
jQuery.data( elements[ i ], markDataKey, undefined, true ) ) &&
|
423
|
+
jQuery.data( elements[ i ], deferDataKey, jQuery.Callbacks( "once memory" ), true ) )) {
|
424
|
+
count++;
|
425
|
+
tmp.add( resolve );
|
426
|
+
}
|
427
|
+
}
|
428
|
+
resolve();
|
429
|
+
return defer.promise();
|
430
|
+
}
|
431
|
+
});
|
432
|
+
})();
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
(function($) {
|
2
2
|
|
3
3
|
$.noty.themes.defaultTheme = {
|
4
4
|
name: 'defaultTheme',
|
@@ -77,7 +77,7 @@
|
|
77
77
|
marginLeft: 0
|
78
78
|
});
|
79
79
|
|
80
|
-
this.$bar.
|
80
|
+
this.$bar.on({
|
81
81
|
mouseenter: function() { $(this).find('.noty_close').stop().fadeTo('normal',1); },
|
82
82
|
mouseleave: function() { $(this).find('.noty_close').stop().fadeTo('normal',0); }
|
83
83
|
});
|
@@ -129,7 +129,7 @@
|
|
129
129
|
|
130
130
|
switch (this.options.type) {
|
131
131
|
case 'alert': case 'notification':
|
132
|
-
this.$bar.css({backgroundColor: '#
|
132
|
+
this.$bar.css({backgroundColor: '#D3CD47', borderColor: '#A7A72E', color: '#444'}); break;
|
133
133
|
case 'warning':
|
134
134
|
this.$bar.css({backgroundColor: '#FFEAA8', borderColor: '#FFC237', color: '#826200'});
|
135
135
|
this.$buttons.css({borderTop: '1px solid #FFC237'}); break;
|